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

5. 

Which of the following is the insertion operator?

[A]. >>
[B]. <<
[C]. //
[D]. /*
[E]. both (a) and (b)

Answer: Option B

Explanation:

No answer description available for this question.

Suvojeet Dutta said: (Aug 2, 2015)  
Its wrong, >> is the insertion operator.

Yajurved Lodhi said: (Aug 30, 2015)  
cin>>a; //This is insertion operator.

cout<<a; //This is extraction operator.

Sharon said: (Nov 23, 2015)  
Operator << (ostream), insert characters.

istream >> extract formatted input.

Shiva Prasad said: (Sep 2, 2016)  
@Yajurved Lodhi and @Suvojeet Dutta are wrong.

&<< is the insertion operation.
and >> is the extraction operator.

Bhushan said: (Oct 3, 2017)  
In C++, stream insertion operator "<<" is used for output and extraction operator ">>" is used for input.

Suraj said: (Nov 25, 2017)  
C++ is able to input and output the built-in data types using the stream extraction operator >> and the stream insertion operator <<.

Raj said: (Aug 15, 2020)  
The correct operator is >>.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.