What will be the output of the program?#include #include void display(int num, ...); int main() { display(4, 'A', 'B', 'C', 'D'); return 0; } void display(int num, ...) { char c, c1; int j; va_list ptr, ptr1; va_start(ptr, num); va_start(ptr1, num); for(j=1; j - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
10 Mar 2023 02:44 PM study24x7 study24x7

What will be the output of the program?

#include<stdio.h> #include<stdarg.h> void display(int num, ...); int main() { display(4, 'A', 'B', 'C', 'D'); return 0; } void display(int num, ...) { char c, c1; int j; va_list ptr, ptr1; va_start(pt...

See more

A

A, A
B, B
C, C
D, D

B

A, a
B, b
C, c
D, d

C

A, 65
B, 66
C, 67
D, 68

D

A, 0
B, 0
C, 0
C, 0

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