Write the syntax and example for constant declaration in C++(
Answers
Answered by
0
Answer:
const keyword is used to declare a constant in C/C++ language, here is the syntax of constant declaration: const data_type constant_name = value; Here, const is a keyword, which specifies that, constant_name is a constant and we cannot change its value.
Answered by
0
- const keyword is used to declare a constant in C/C++ language, here is the syntax of constant declaration: const data_type constant_name = value; Here, const is a keyword, which specifies that, constant_name is a constant and we cannot change its value.
Similar questions