What is extraction operator << and insertion operator >> means in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is extraction operator << and insertion operator >> means in c++?

example like cout and cin are objects

27th Nov 2016, 3:04 PM
sadiya zainab
sadiya zainab - avatar
3 Answers
+ 2
<< : extraction operator will extract the contents to the console output ..ie,everything on the right side of the << will be given to the cout(console output) >> : insertion operator will read the contents from the console input ..ie,whatever read from left side of >> (console input) is given to the variables on the right side
27th Nov 2016, 4:11 PM
shaheer shukur
shaheer shukur - avatar
0
I want learn java from the introduction
27th Nov 2016, 3:16 PM
Nura Muhammad Bello
0
anlamiom
24th Dec 2016, 12:18 PM
füdua
füdua - avatar