+ 2

How to declare a variable as a constant in the entire code?

only keyword needed

10th Nov 2017, 9:07 PM
Anandh Jawahar
Anandh Jawahar - avatar
5 Answers
+ 4
Use "const" keyword.
10th Nov 2017, 9:13 PM
Shadow
Shadow - avatar
+ 3
@M Squared Nice! I will give that a shot. ref https://docs.microsoft.com/en-us/cpp/cpp/constexpr-cpp
10th Nov 2017, 10:09 PM
Manual
Manual - avatar
0
"const"
11th Nov 2017, 6:33 AM
Shamly