Important MCQ

The operator used with cin is

Q.The operator used with cin is

A) &&
B) #ERROR!
C) >>
D) <<
Correct Answer:
Option C
Detailed Explanation:
C) >> is correct. cin is an istream object used for keyboard input with >>. It can read multiple values separated by whitespace; getline reads a complete line including spaces.