state the use of cin and cout
Answers
Answered by
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
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
Math,
2 months ago
Social Sciences,
2 months ago
Math,
2 months ago
English,
2 months ago
Chemistry,
11 months ago
Math,
11 months ago
Social Sciences,
11 months ago