Examveda
Examveda

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;
}

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


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals