Constants
- What will be the output of the following C code?
#include <stdio.h>
void main()
{
int const m = 10;
m++;
printf("m is %d", m);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Constant variable has to be declared and defined at the same time. Trying to change it results in an error.
- What will be the output of the following C code?
#include <stdio.h>
int const Result()
{
printf("interviewmania.com");
return 0;
}
void main()
{
Result();
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
interviewmania.com