+ 3
Need for constants
What do you need constants for in actual programs
1 Antwort
+ 10
When you want to make a variable that cant be changed or variable that never change in value. ^_^
Example:
i want to make a password that can't be changed
const int pass = 0077352;
i want to make gun damage can't be change in value.
const int gunAK47 = 150;