Vidyalelo
C Programming · Q228

File Input Output

Programming · C Programming · question 228

Q228

What will be the output of the following C code? #include #include int f(int c, ...); int main() int c = 97; float d = 98; f(c, d); return 0; int f(int c, ...) va_list li; va_start(li, c); float d = va_arg(li, float); printf("%f ", d); va_end(li);

A.
Compile time error
B.
Undefined behaviour
Answer
C.
97.000000
D.
98.000000

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board