What will be the output of the program?#include #include 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); printf('%d', i); } va_end(p); printf('\n'); } - Study24x7
Social learning Network
10 Mar 2023 02:43 PM study24x7 study24x7

What will be the output of the program?

#include<stdio.h> #include<stdarg.h> 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...

See more

A

2 4
3 6

B

2 4 8
3, 6, 9, 7

C

4 8
6 9 7

D

1 1 1
1 1 1 1

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles