Computer Science, asked by jananigreen17, 8 months ago

Comment on the output of this C code?
#include <stdio.h>
int main()
{
int ThisIsVariableName = 12;
int ThisIsVariablename = 14;
printf("%d", ThisIsVariablenam
e);
return 0;
}
Select one:
a. The program will print 12
b. The program will print 14
c. The program will cause a compile-time
error due to redeclaration
d. The program will have a runtime error​

Answers

Answered by mythilir2011
0

Answer:

b. The program will print 14

Answered by imtiyazallam
0

Answer:

It will print 14.

There is no re-declaration of variables as C programming language is a case sensitive programming language. So, ThisIsVariableName and ThisIsVariablename will be treated differently.

Similar questions