C Programming - Variable Number of Arguments
Exercise : Variable Number of Arguments - True / False Questions
- Variable Number of Arguments - Find Output of Program
- Variable Number of Arguments - Point Out Errors
- Variable Number of Arguments - True / False Questions
- Variable Number of Arguments - Yes / No Questions
1.
The macro va_arg is used to extract an argument from the variable argument list and advance the pointer to the next argument.
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.
3.
A function that receives variable number of arguments should use va_arg() to extract arguments from the variable argument list.
4.
For a function receives variable number of arguments it is necessary that the function should receive at least one fixed argument.
5.
A function that receives variable number of arguments should use va_arg() to extract the last argument from the variable argument list.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers