+ 1

If we r making the value of a variable constant... Then will it's value remain constant in the whole program or what???

17th Jan 2017, 3:28 PM
Akash Verma
Akash Verma - avatar
2 ответов
+ 3
yes, meaning it will NEVER change in its scope.
17th Jan 2017, 4:00 PM
Wen Qin
Wen Qin - avatar
+ 2
const is used to define variables that will never get changed during running the program. 4 example, if we wrote a program to calculate area of a circle ,variable PI doesn't need to change and it's 3.14 4ever.
18th Jan 2017, 7:41 PM
Mahdi Delavary