Which of the following is the correct difference between cin and scanf()?

GPSC College Teaching (CS/IT) 2021

Which of the following is the correct difference between cin and scanf()?

  1. A.

    Both are the same

  2. B.

    cin is a stream object whereas scanf() is a function

  3. C.

    scanf() is a stream object whereas cin is a function

  4. D.

    cin is used for printing whereas scanf() is used for reading input

Attempted by 9 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…