Sail E0 Webinar
Question


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(ptr, num);
va_start(ptr1, num);
for(j=1; j
Options:
A .  Dogs 12
B .  Cats 14
C .  Boys 13
D .  Apple 12
Answer: Option D

Answer: Option C



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers