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()?
- A.
Both are the same
- B.
cin is a stream object whereas scanf() is a function
- C.
scanf() is a stream object whereas cin is a function
- 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 freeLoading lesson…

