Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 5)
5.
Which of the following is the insertion operator?
Discussion:
9 comments Page 1 of 1.
Raj said:
5 years ago
The correct operator is >>.
(1)
Salman said:
4 years ago
I think Option A is correct.
(1)
Suvojeet Dutta said:
1 decade ago
Its wrong, >> is the insertion operator.
YAJURVED LODHI said:
10 years ago
cin>>a; //This is insertion operator.
cout<<a; //This is extraction operator.
cout<<a; //This is extraction operator.
Sharon said:
10 years ago
Operator << (ostream), insert characters.
istream >> extract formatted input.
istream >> extract formatted input.
Shiva Prasad said:
9 years ago
@Yajurved Lodhi and @Suvojeet Dutta are wrong.
&<< is the insertion operation.
and >> is the extraction operator.
&<< is the insertion operation.
and >> is the extraction operator.
Bhushan said:
8 years ago
In C++, stream insertion operator "<<" is used for output and extraction operator ">>" is used for input.
Suraj said:
8 years ago
C++ is able to input and output the built-in data types using the stream extraction operator >> and the stream insertion operator <<.
Mannu Jain said:
5 years ago
The insertion operator << is the one we usually use for output , as in: cout<<"this is output"<<endl;.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers