Q. Which of the following is the correct syntax for defining a constant in C++?
β
Correct Answer: (A)
const int x = 5;
Explanation: In C++, the correct syntax to define a constant is 'const type name = value;'