C - Keywords - Discussion

You Are Here :: Home > C > Keywords - Discussion

 



Q.

What will be output?

void main()
{
const int a=5;
a++;
printf("%d",a);
}

A. 5 B. 7
C. No error D. Compiler error

Answer: Option D
Explaination:

 


compiler error, we cannot modify const variable.



Discussion

Your Comments Goes here...
NameDiscussion