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
πŸ’¬ Discuss
βœ… Correct Answer: (B) No
Explanation: const means the variable cannot be modified once declared.
Explanation by: Mr. Dubey
const means the variable cannot be modified once declared.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate