Programming Languages C Objective
Mar 08, 2013

What will be output of the following c code?

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

Choose the correct answer:
B) 8
C) 9
D) Compiler error
Detailed Explanation

We cannot modify the const variable by using increment operator.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback