MCQs > IT & Programming > C Programming > Output of following code:- #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<=num;j++) { c=va_arg(ptr, int); printf('%c,',c); c1=va_arg(ptr1, int); printf('%d\n',c1); } }

C Programming MCQs

What will be the output of following code:- #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<=num;j++) { c=va_arg(ptr, int); printf("%c,",c); c1=va_arg(ptr1, int); printf("%d\n",c1); } }

 

Answer

Correct Answer: A,65 B,66 C,67 D,68

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it