Vidyalelo
C Programming · Q165

C Fundamentals

Programming · C Programming · question 165

Q165

What will be the output of the following C code? #include int main() int ThisIsVariableName = 12; int ThisIsVariablename = 14; printf("%d", ThisIsVariablename); return 0;

A.
The program will print 12
B.
The program will print 14
Answer
C.
The program will have a runtime error
D.
The program will cause a compile-time error due to redeclaration

Answer: Option B

Solution

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