+ 2
Why a variable change itâs value?
@Can you do something to prevent the variables to change value in the same program?
2 Answers
+ 4
That is the behavior of a variable. Keep in mind that there is data that should or may change during execution.
If you want your variable to not change at any time during program execution, it is best to declare it as a constant. That way you reassure yourself that your value will remain unchanged.
0
Thank you. How do you declare it as a constant?