U
Q. What is the output of this program?
#include #include using namespace std; void List(int, ...); int main() { List(2, 5, 10); List(3, 6, 9, 7); return 0; } void List(int num, ...) { va_list a; int k; va_start(a, num); while (num-->0) { k = va_arg(a, int); cout << k; } va_end(a); }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the default return type of a function?
Q. How many ways of passing a parameter are there in c++?
Q. ___ data type to indicate the function does not return a value.
Q. Which of the following will correctly initialize a dynamic array of integers with 10 elements?
Q. Which of the following cannot be passed to a function in C++?
Q. Find the output of the following program.
Q. If an argument to a function is declared as const, then _______ .
Q. Which of the following is used to terminate a loop in C++?
Discusssion
Login to discuss.