Q. Which of the following C++ keywords is used to declare a constant?

  • (A) constant
  • (B) const
  • (C) final
  • (D) immutable
πŸ’¬ Discuss
βœ… Correct Answer: (B) const
Explanation: 'const' is used in C++ to declare constants.
Explanation by: Priyanka Tomar
'const' is used in C++ to declare constants.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
260
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
91%
Success Rate