What are cin and cout in C++?

Cout is used to print the output on the screen. It is used with an insertion operator <<. Cin is used to read the value form the keyboard. It is used with extraction operator>>. Both these cin and cout are present in header file iostream.h.

Eg: int i;

Cout<<”Enter value of i”;

Cin>>i;

Cout<<”Value of i is” <<i;

More Questions

Leave a Reply

Word Verfication * Time limit is exhausted. Please reload CAPTCHA.