The value typed by the user through cin is stored in a
Q.The value typed by the user through cin is stored in a
A) comment
B) keyword
C) header file
D) variable
Correct Answer:
Option D
Detailed Explanation:
D) variable 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.