V

Vijay Sangwan • 28.62K Points
Instructor II

Q. Which keyword is used to declare a constant variable in C++?

  • (A) define
  • (B) const
  • (C) static
  • (D) constant
  • Correct Answer - Option(B)
  • Views: 68
  • Filed under category C++

Explanation by: Vijay Sangwan
The 'const' keyword is used to declare a constant variable in C++.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics