0

My question is that cout is function or object?.C++

if it's object then kindly tell me what is object..In my opinion,function must start with paranthesis()..Kindly clear it to me. C++

25th Mar 2022, 8:19 PM
Muhammad Talha Atif
Muhammad Talha Atif - avatar
1 Answer
0
std::cout is a global object of the class std::ostream which is used to write output to the terminals. https://en.cppreference.com/w/cpp/io/cout Operator << is overloaded for the std::ostream class, so you can pass arguments to it's overloading function (std::ostream& operator<<(...)) https://www.cplusplus.com/reference/ostream/ostream/operator%3C%3C/
25th Mar 2022, 9:04 PM
ogoxu
ogoxu - avatar