C Programming - Variable Number of Arguments
|
|
|
|
Exercise"I never think of the future. It comes soon enough."
- Albert Einstein
|
| 1. |
The macro va_arg is used to extract an argument from the variable argument list and advance the pointer to the next argument. |
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
|
| 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. |
Answer: Option B
Explanation:
No answer description available for this question. Let us discuss.
|
| 3. |
A function that receives variable number of arguments should use va_arg() to extract arguments from the variable argument list. |
Answer: Option E
Explanation:
No answer description available for this question. Let us discuss.
|
| 4. |
For a function receives variable number of arguments it is necessary that the function should receive at least one fixed argument. |
Answer: Option D
Explanation:
No answer description available for this question. Let us discuss.
|
| 5. |
A function that receives variable number of arguments should use va_arg() to extract the last argument from the variable argument list. |
Answer: Option E
Explanation:
No answer description available for this question. Let us discuss.
|
|
|