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
0
hufggreesskhgdsaefgvc
Similar questions
Geography,
6 months ago
Biology,
6 months ago
English,
6 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Physics,
1 year ago