1.

The macro void assert(int expression) allows the diagnostic information to be written in which of the following files?(a) standard error file(b) output file(c) string file(d) character fileThis question was addressed to me in homework.My question is from Diagnostics in section C Library of C

Answer»

Right OPTION is (a) STANDARD error file

Best explanation: The macro assert prints diagnostic information on the standard error file(stderr). The assert macro WRITES the information about the particular call that failed (including the text of the argument, name of the SOURCE file and the source line NUMBER) on the standard error file in an implementation-defined format.



Discussion

No Comment Found

Related InterviewSolutions