Register now or log in to join your professional community.
Typing on the screen contents of a variable char s = "this is only a test" will be done in C ++ using statement:A. cin << sB. cout >> sC. cout << sD. cin >> s
c. cout << s , is the correct answer
The correct answer is;
C. cout << s
Remember;
- you always "give" to cout (hence cout << aVariable;)
- you always "take" from cin (hence cin >> aVariable;)
Hey Tomasz Modrzejewski...!!
Are you alright..??
How can you forget this basic thing..
The right choice is C.
cout << s ;
yes C / how did you know ? Do you can prove it?