Q. What is the purpose of the 'const' keyword in C?

  • (A) Make variable constant
  • (B) Declare global variable
  • (C) Declare static variable
  • (D) Make pointer null
πŸ’¬ Discuss
βœ… Correct Answer: (A) Make variable constant
Explanation: const makes a variable read-only after initialization.
Explanation by: Mr. Dubey
const makes a variable read-only after initialization.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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