+ 2

I am little bit confused b/w cout and cin....so what's the main difference between them?

2nd Nov 2016, 9:17 AM
Zulkarnain Khan
Zulkarnain Khan - avatar
14 Antworten
+ 6
Both cout and cin are objective functions. These functions are the ways for communication between an user and a computer. cout function gives the output to user and cin function takes input from user.
2nd Nov 2016, 10:47 AM
Anoop Kumar
+ 4
cout is output. cin is input. that's the difference.
2nd Nov 2016, 9:34 AM
kiwiyou
kiwiyou - avatar
+ 3
cout prints output on screen and cin takes input from user.. after cout u have to write << and after cin you have to write >>
3rd Nov 2016, 9:19 AM
Syed Hasi
Syed Hasi - avatar
+ 3
cout is work as console output and cin is work as a console input. when we have print something on screen by computer then we have to use cout.. if user wants to give instructions or value of variable then we have to use cin
3rd Nov 2016, 10:49 PM
akki tyagi
akki tyagi - avatar
+ 2
cout<<"Please insert a number: ";//Output cin>> number; //Input
2nd Nov 2016, 9:36 AM
Leo Flame
Leo Flame - avatar
+ 2
the cout stand for output you want to exspress and direct output subsequent words,but the cin's fuction need you input your words ,else your procedure can't operation.
2nd Nov 2016, 9:37 AM
jinxiaohan
jinxiaohan - avatar
0
cout is used for output, and cin is used to input
2nd Nov 2016, 12:23 PM
ForceLapotok
ForceLapotok - avatar
0
cout is used to print the statement on the screen, which you write in the double quotation marks and the cin is used to take the input from you , when you runs the program
3rd Nov 2016, 5:28 PM
Ismail Zam Zam
Ismail Zam Zam - avatar
0
cout is console output cin is console input you use cin to input numbers eg: ... cin>>a;//if you type 420, the variable's value will be 420 for that run cout<<"your input it:"<<a;//outputs "your input is a(asigned value)"
3rd Nov 2016, 9:59 PM
FearMeNot
FearMeNot - avatar
0
cout give output and cin take input from users
9th Nov 2016, 5:26 AM
Azam Khan
Azam Khan - avatar
0
cout means console output(similar to printf function in c which is used to input data ) cin means console input(similar to scanf function in c) cin displays the output
25th Nov 2016, 4:14 PM
BridaSwan
0
Cout show the data to screen, and cin takes any data(text, numbers) from user for using it in the future and usually stores taken info into variable or array
27th Nov 2016, 9:37 AM
Alex89
Alex89 - avatar
0
cout is used for printing statement cin is used for taking the input from the user
18th Aug 2020, 6:11 PM
NAVAL CHAUHAN
NAVAL CHAUHAN - avatar
- 1
cin is for obtaining input from. the user..while court gives the output
2nd Nov 2016, 4:49 PM
Niel