LearnFrenzy
Sign in Take a free test

Variable Number of Arguments · Exercise 1 of 4

Variable Number of Arguments Variable Arguments MCQ

  • 12 questions
  • Page 2 of 2
  • Answers explained
0Attempted
0Correct
0Wrong
Directions

Twelve multiple-choice questions on variadic functions, stdarg.h macros, promotions, wrappers, variadic macros and C23. Pick an option to check your answer instantly.

Question 11 Easy

In #define LOG(fmt, ...) printf(fmt, __VA_ARGS__), what is __VA_ARGS__?

A The number of arguments
B The arguments that matched the ..., with their commas
C A va_list
D The format string
Question page & discussion
Question 12 Hard

Which change did C23 make?

A va_arg now checks types
B Functions like int f(...) with no named parameters are allowed, and va_start needs only the va_list
C Variadic functions were removed
D va_end became optional
Question page & discussion
Up next · Exercise 2Predict the Output12 questions

Ready to test your Programming?

Timed online tests with instant scores and explanations.

Search LearnFrenzy

Esc

Quick links