1.

______ macro must be called before using ______ and ________(a) va_arg, va_end and va_start(b) va_start, va_end and va_arg(c) va_end, va_arg and va_start(d) v_arg, v_end and v_startThe question was posed to me at a job interview.This question is from Variable Argument Lists topic in portion C Library of C

Answer»

Correct choice is (B) va_start, va_end and va_arg

Explanation: va_start macro must be CALLED before using macros va_end and va_arg.

The macro VOID va_start(va_list p, last_arg) initializes p variable to be USED with the va_arg and va_end macros.



Discussion

No Comment Found

Related InterviewSolutions