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); } - Study24x7
Social learning Network
10 Mar 2023 02:47 PM study24x7 study24x7

What will be the output of the program?

#include<stdio.h> #include<stdarg.h> 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, ...) { cha...

See more

A

Dogs 12

B

Cats 14

C

Boys 13

D

Apple 12

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