What will be the output of the following C code?
#include <stdio.h>
int f(char chr, ...);
int main()
{
char c = 97;
f(c);
return 0;
}
int f(char c, ...)
{
printf("%c\n", c);
}
#include <stdio.h>
int f(char chr, ...);
int main()
{
char c = 97;
f(c);
return 0;
}
int f(char c, ...)
{
printf("%c\n", c);
}
A. Compile time error
B. Undefined behaviour
C. 97
D. a
Answer: Option D
Join The Discussion