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

Discussion Forum : Object Oriented Programming Using C++ - Section 11 (Q.No. 14)
14.
Which of the following is the extraction operator?
>>
<<
//
/*
both (a) and (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Ram said:   1 decade ago
>> is used with cout thus it is extracting out information from program to display, whereas << is importing operator as it imports data from outside (user) into the program.

Vikas said:   8 years ago
No @Ram.

>> it is extraction operator used with cin.

NKJAIN said:   8 years ago
Yes, >> is used with cin i.e. cin>>a.

Sona said:   9 years ago
>> is used with cin not with cout.

Post your comments here:

Your comments will be displayed after verification.