-
What will be the output of the following C code?
#include <stdio.h>
#include <stdarg.h>
int fun(char ch, ...);
int main()
{
char ch1 = 100, ch2 = 101;
fun(ch1, ch2);
return 0;
}
int fun(char ch, ...)
{
va_list list;
va_start(list, ch);
char ch2 = va_arg(list, int);
printf("%c\n", ch2);
va_end(list);
}
-
- 100
- d
- 101
- e
- None of these
Correct Option: D
e