True / False Questions

Question 1 :

The macro va_arg is used to extract an argument from the variable argument list and advance the pointer to the next argument.


A). True
B). False
Answer : Option A

Question 2 :

In a function that receives variable number of arguments the fixed arguments passed to the function can be at the end of argument list.


A). True
B). False
Answer : Option B

Question 3 :

A function that receives variable number of arguments should use va_arg() to extract arguments from the variable argument list.


A). True
B). False
Answer : Option A

Question 4 :

For a function receives variable number of arguments it is necessary that the function should receive at least one fixed argument.


A). True
B). False
Answer : Option A

Question 5 :

A function that receives variable number of arguments should use va_arg() to extract the last argument from the variable argument list.


A). True
B). False
Answer : Option B

Question 6 :

va_list is an array that holds information needed by va_arg and va_end


A). True
B). False
Answer : Option A

Question 7 :

The macro va_start is used to initialise a pointer to the beginning of the list of fixed arguments.


A). True
B). False
Answer : Option B