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
Answer: Option B
Related Questions on Introduction to C plus plus
What does the 'cin' object in C++ represent?
A. File output stream
B. File input stream
C. Standard output stream
D. Standard input stream
Join The Discussion