1.

The assert shall be implemented as a ______ not as an actual ________(a) function, macro(b) macro, function(c) header, macro(d) macro, headerI have been asked this question in an interview for internship.My doubt stems from Diagnostics topic in portion C Library of C

Answer»

Right OPTION is (b) macro, function

Explanation: assert shall be implemented as a macro and not a function, which is used to ADD DIAGNOSTICS information in your C PROGRAM. The behavior is undefined if the macro definition is suppressed to access an actual function.



Discussion

No Comment Found

Related InterviewSolutions