Q68
What will be the output of the following C++ code? #include #include using namespace std; void dumplist(int, ...); int main() dumplist(2, 4, 8); dumplist(3, 6, 9, 7); return 0; void dumplist(int n, ...) va_list p; int i; va_start(p, n); while (n-->0) i = va_arg(p, int); cout << i; va_end(p);
A.
2436
B.
48697
AnswerC.
1111111
D.
compile time error
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board