1.

What is the use of clog?(a) Standard logging stream(b) Error stream(c) Input stream(d) output streamThe question was posed to me during an interview for a job.I want to ask this question from Class Hierarchies Introduction in section Class Hierarchies, Library & Containers of C++

Answer»

Correct option is (a) Standard LOGGING stream

Easy explanation - clog is an object of class ostream that REPRESENTS the standard logging stream. It is ASSOCIATED with the cstdio stream stderr, like CERR.



Discussion

No Comment Found

Related InterviewSolutions