C Programming Variable Length Argument Online Exam Quiz
C Programming Variable Length Argument GK Quiz. Question and Answers related to C Programming Variable Length Argument. MCQ (Multiple Choice Questions with answers about C Programming Variable Length Argument
In a variable length argument function, the declaration “…” can _______
Options
A : Appear anywhere in the function declaration
B : Only appear at the end of an argument list
C : Nothing
D : None of the mentioned
Which of the following data-types are promoted when used as a parameter for an ellipsis?
Options
A : char
B : short
C : int
D : none of the mentioned
Each call of va_arg _______
Options
A : Returns one argument
B : Steps va_list variable to the next
C : Returns one argument & Steps va_list variable to the next
D : None of the mentioned
Which header file includes a function for variable number of arguments?
Options
A : stdlib.h
B : stdarg.h
C : ctype.h
D : both stdlib.h and stdarg.h
The type va_list in an argument list is used ________
Options
A : To declare a variable that will refer to each argument in turn;
B : For cleanup
C : To create a list
D : There is no such type
Which of the following macro extracts an argument from the variable argument list (ie ellipsis) and advance the pointer to the next argument?
Options
A : va_list
B : va_arg
C : va_end
D : va_start
Which of the following function with ellipsis are illegal?
Options
A : void func(…);
B : void func(int, …);
C : void func(int, int, …);
D : none of the mentioned
Chemical Engineering Basics - Part 1 more Online Exam Quiz
C Programming Sizeof Keyword 1
C Programming Sizeof Keyword 2
C Programming Storage Management 1
C Programming String Operations
C Programming Variable Names 1
C Programming Variable Names 2
C Plus Plus Aptitude Question Answer Pointers