1.

What will be the output of the following C code?
#include <stdio.h>
#include <stdarg.h>
int fun(char ch, ...);
int main()
{
char ch1 = 99, ch2 = 100;
fun(ch1, ch2);
return 0;
}
int fun(char ch, ...)
{
va_list list;
va_start(list, ch1);
char ch2 = va_arg(list, char);
printf("%c n", ch2);
va_end(list);
}

A. c
B. Compilation Error
C. d
D. Undefined behaviour
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs