What is the difference between the cout and cin iostream
objects?
Answer Posted / mukta b
• Cin : Represented by insertion operator >>
Cout : Represented by extraction operator <<
• cin : is an object of input streams like consoles, files, etc.
Cout : is an object of output streams that's used to show outputs.
• cin : is an input statement
cout : is an output statement
Example :
#include<iostream.h>
#include<conio.h>
void main()
{
int a;
cout<<"Enter value for a: "; //taking value of a
cin>>a; //inputing value
cout<<"A = "<<a; //outputing value
getch();
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the significance of initapplication() in vc++.
Do I need the microsoft visual c++?
Explain the advantages of cwinthread class.
What is difference between c++ and visual c++?
difference between assert and verify.
How do I reinstall microsoft visual c++?
Difference between critical section, mutex and semaphore.
How do I fix microsoft visual c++ 2015 setup failed?
Do I need all the microsoft visual c++ redistributable?
Is it ok to uninstall microsoft visual c++?
how to declare and populate an array of checkBoxes
What is splitter window in vc++?
What is a copy constructor? What is the need for it?
What is microsoft visual c++ 2017 redistributable?
What is iunknown?