What will be the output of the following C code?
#include <stdio.h>
int main()
{
int ThisIsVariableName = 12;
int ThisIsVariablename = 14;
printf("%d", ThisIsVariablename);
return 0;
}
#include <stdio.h>
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
C. The program will have a runtime error
D. The program will cause a compile-time error due to redeclaration
Answer: Option B

Join The Discussion