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
0
Answer:
b. The program will print 14
Answered by
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
Political Science,
4 months ago
Math,
4 months ago
Math,
8 months ago
Math,
8 months ago
Physics,
1 year ago