+ 1

Why constant is unchangeable?

const int x = 10; scanf ("%d",&x);//(new value)

15th May 2020, 4:46 AM
AR Sĕŕïéś
AR Sĕŕïéś - avatar
2 ответов
+ 2
Constants the most case you use when you define magic numbers this number is fixed like upload max size or the absolute path of the application this things will not be modified in the future
15th May 2020, 5:44 AM
mohamed nabil
mohamed nabil - avatar
+ 1
Because const is constant.
15th May 2020, 4:50 AM
Calviղ
Calviղ - avatar