What is the Basic nature of "cin" and "cout" and what concept or principle we are using on those two?

Basically "cin and cout" are INSTANCES of istream and ostream classes respectively.And the concept which is used on cin and cout is operator overloading. Extraction and Insertion operators are overloaded for input and ouput operations.

Reference:: Object oriented programming in C++ By E.Balagurusamy

Showing Answers 1 - 3 of 3 Answers

cin and cout are both objects of iostream class which we use to get input from user and present output to user respectively'<<' and ' >> ' are overloaded operators in iostream classwhen you write : cout << X;an overloaded function of iostream class is called by cout object which passes X as an argument to that functionNow the functionality of the function is such as to print value of X on screen.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions