Important MCQ

Which header is needed for cin?

Q.Which header is needed for cin?

A) <cmath>
B) <iomanip>
C) <iostream>
D) <ctime>
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.