1.

void assert(int expression) when the expression is evaluated to true?(a) assert returns integer value(b) assert displays error message(c) assert returns nothing(d) assert displays patternThe question was posed to me in an online interview.This question is from Diagnostics in chapter C Library of C

Answer»

Correct CHOICE is (C) assert returns NOTHING

Easiest explanation - VOID assert(int expression), expression can be a variable or any C expression. If the expression EVALUATES to TRUE, assert() does nothing.



Discussion

No Comment Found

Related InterviewSolutions