+ 1

What is the output of this code? Can any one explain this code for getting output

void fun(char *msg,...) { va_list ptr; int num; va_start(ptr,msg); num=va_arg(ptr,int); num=va_arg(ptr,int); printf("%d",num); } int main() { fun("solo",0,7,1,4,93); return 0; }

4th Nov 2018, 10:12 AM
siva leela
3 Answers
4th Nov 2018, 10:59 AM
KrOW
KrOW - avatar
+ 5
This is also new to me, so I did a little search on the net, and here's what I found: https://www.cprogramming.com/tutorial/c/lesson17.html Hth, cmiiw
4th Nov 2018, 10:44 AM
Ipang
8th Nov 2018, 8:57 AM
AishaMJ
AishaMJ - avatar