Important MCQ

cin >> s; for a string stops reading at the first

Q.cin >> s; for a string stops reading at the first

A) letter
B) whitespace
C) semicolon
D) digit
Correct Answer:
Option B
Detailed Explanation:
B) whitespace 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.