What is the difference between the cout and cin iostream
objects?

Answer Posted / farkhanda

cin and cout both are used in iostream library

cin is same as "scanf" in C and cout is same as "printf" in C

cin operator is always ">>"

and

cout operator is always "<<"

the general syntax for cout is .... cout<<variable<<variable2<<....<<variable n;

the general syntax for cin is ....
cin>>variable1>>variable2>>.....>>variable n;

Is This Answer Correct ?    19 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain pointer to the constant and constant pointer? Explain difference between them.

765


What is iunknown? Explain some of commonly used methods provided by iunknown.

706


What is microsoft visual c++ 2015 redistributable package x64?

633


What is the difference between an MLE and an SLE?

5892


What is the use of message map? Advantages of a message map.

655






How do you handle drag and drop in ole?

675


What is ole? How do you handle drag and drop in ole?

614


What is the Use of the Developer Studio Editor?

2236


difference between assert and verify.

662


Explain some of commonly used methods provided by iunknown.

590


How do I uninstall and reinstall microsoft visual c++ runtime libraries?

655


What is cmutex? How can we use it?

647


What is microsoft visual c++ used for?

639


How you build a project using Developer Studio?

1831


What is cmutex?

658