I am expecting a similar behavior for Cout and Clog since both are buffered outputs. But when i am trying, it comes out different.
COUT:
int main()
{
cout<<"Hello World" ;
while(1);
return 0;
}
Output: Nothing --> Since Cout is not flushed
CLOG:
int main()
{
clog<<"Hello World" ;
while(1);
return 0;
}
Output: Hello World
Question: Both COUT and CLOG are buffered, so why not the output is same. How is "Hello World" being printed without the buffer being flushed