U
Q. What will initialize the list of arguments in stdarg.h header file?
In the C standard library <stdarg.h>, used for handling variable argument lists, the roles of each macro/type are as follows:
va_list:
This is a type used to declare a variable that will hold the information needed to retrieve the additional arguments.va_start(va_list, last_fixed_param):
This initializes the va_list variable so it can be used to retrieve the variable arguments. This is the correct answer to the question.va_arg(va_list, type):
This retrieves the next argument in the list.So only va_start is responsible for initializing the list of arguments.
✅ Correct Answer: (A) va_start
You must be Logged in to update hint/solution
Q. Which of the following is the correct way to define a destructor in a derived class in C++?
Q. when ______ array that are declared static are initialized
Q. Which operator is used to resolve ambiguity in multiple inheritance?
Q. Are both of the preprocessor directives solving same purpose?
Q. Which of the following is the correct way to define a static member function in C++?
Q. Which operation is used as Logical 'AND'
Q. Which one is the valid real constant?
Q. The major goal of inheritance in c++ is
Q. Identify the correct extension of the user-defined header file in C++.
Discusssion
Login to discuss.