Computer Science, asked by shilavatdamini661, 2 months ago

state the use of cin and cout​

Answers

Answered by indrasirvi185
1

Answer:

cin is an object of the input stream and is used to take input from input streams like files, console, etc. cout is an object of the output stream that is used to show output. Basically, cin is an input statement while cout is an output statement. They also use different operators.

Answered by adventureisland
2

"CIN" seems to be an input stream object that accepts input. "COUT" is an output stream object that is used to display output.

Use of 'CIN' and 'COUT'  :

  • "CIN" seems to be an input stream object that accepts input from files, consoles, and other input streams.
  • "COUT" is an output stream object that is used to display output. "CIN" is an input statement, whereas "COUT" is an output statement. They also employ several operators.
  • In C++, the "COUT" object belongs to the iostream class. The 'iostream' header file defines it. It is used to display the output on a monitor, which is the usual output device. It's linked to stdout, the standard C output stream.
Similar questions