Yes / No Questions

Question 1 :

Can we pass a variable argument list to a function at run-time?


A). Yes
B). No
Answer : Option B

Explanation :

Every actual argument list must be known at compile time. In that sense it is not truly a variable argument list.


Question 2 :

While defining a variable argument list function we drop the ellipsis(...)?


A). Yes
B). No
Answer : Option A

Question 3 :

Is it necessary that in a function which accepts variable argument list there should be at least be one fixed argument?


A). Yes
B). No
Answer : Option A

Question 4 :

Can we write a function that takes a variable argument list and passes the list to another function?


A). Yes
B). No
Answer : Option A

Question 5 :

Can the fixed arguments passed to the function that accepts variable argument list, occur at the end?


A). Yes
B). No
Answer : Option B

Question 6 :

It is necessary to call the macro va_end if va_start is called in the function.


A). Yes
B). No
Answer : Option A

Question 7 :

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


A). Yes
B). No
Answer : Option B