Vidyalelo
C Programming · Q204

Function

Programming · C Programming · question 204

Q204

What will be the output of the following C code? #include void f(); int main() #define max 10 f(); return 0; void f() printf("%d ", max * 10);

A.
100
Answer
B.
Compile time error since #define cannot be inside functions
C.
Compile time error since max is not visible in f()
D.
Undefined behaviour

Answer: Option A

Solution

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