Computer Science - Object Oriented Programming Using C++ - Discussion

29. 

Which of the following statements allows the user to enter data at the keyboard?

[A]. cin << currentPay;
[B]. cin >> currentPay;
[C]. cout << currentPay;
[D]. cout >> currentPay;
[E]. None of the above

Answer: Option B

Explanation:

No answer description available for this question.

Jagdeepsandhu said: (Jun 17, 2012)  
We know that cin>> is used for input from the keyboard and cout<< is used to display the output on the screen.

Vikas Bhau said: (Apr 15, 2014)  
How it can be: cin >> currentPay;?

Priya said: (Jul 2, 2017)  
cin>> is used to get input from the user. So we can say that it allows the user to enter data.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.