Computer Science, asked by Sureshbheje3732, 1 year ago

31. What will be the output of the program? #include #include void fun1(int num, ...); void fun2(int num, ...); int main() { fun1(1, "apple", "boys", "cats", "dogs"); fun2(2, 12, 13, 14); return 0; } void fun1(int num, ...) { char *str; va_list ptr; va_start(ptr, num); str = va_arg(ptr, char *); printf("%s ", str); } void fun2(int num, ...) { va_list ptr; va_start(ptr, num); num = va_arg(ptr, int); printf("%d", num); } dogs 12 cats 14 boys 13 apple 12

Answers

Answered by agam584
0

hufggreesskhgdsaefgvc

Similar questions