Machine-translated by Google. Questions are authored in English.
Top

Discussion

The _______ macro shall be invoked before any access to the unnamed arguments.

  • A.va_arg
  • B.va_end
  • C.va_list
  • D.va_start

Answer: D

Correct answer: va_start

va_start must be called first: it initialises the va_list, using the last named parameter to work out where the unnamed ones begin. Only then may va_arg fetch them, and va_end must be called before the function returns.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.