A

Admin • 802.91K Points
Coach

Q. Which of the following will compile successfully?

Code:
const int a;
a = 5;
  • (A) Yes
  • (B) No
  • (C) Only in C++
  • (D) Only for global vars
  • Correct Answer - Option(B)
  • Views: 4
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
const means the variable cannot be modified once declared.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.