1.

The _______ macro shall be invoked before any access to the unnamed arguments.(a) va_arg(b) va_end(c) va_list(d) va_startI got this question in an interview for job.My question is taken from Variable Argument Lists topic in chapter C Library of C

Answer»

The correct OPTION is (d) va_start

The best explanation: va_start macro SHALL be invoked before any ACCESS to the unnamed arguments.void va-start (va-list AP, p); The va-start macro initializes ap for subsequent USE by va-arg and va-end.



Discussion

No Comment Found

Related InterviewSolutions