+ 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; }
3 Answers
+ 3
Beside that, see here http://www.cplusplus.com/reference/cstdarg/va_list/
+ 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
+ 1
here's what I found:
https://www.cprogramming.com/tutorial/c/lesson17.html