Google News
logo
CPP - Interview Questions
What is a constant in the context of a C++ program? Can you describe the different types of constants?
In the context of a C++ program, a constant is a type of expression that has a fixed value. Constants can be divided into integer, decimal, floating-point, character, or string, depending on the type of data. C++ also supports octal and hexadecimal constants.
Advertisement