+ 2
Why we cant modify CONST variable once initialised
Please give the example.
7 Respostas
+ 7
const = constant = cannot be changed
+ 7
Here is another link that explains const in several contexts including when declaring with volatile.
https://stackoverflow.com/a/36529755
+ 3
const is designated to create a variable which cannot be changed. it is fixed
.https://stackoverflow.com/questions/2524585/the-benefits-of-constants
+ 1
Thanks for your response.
But why it cant be remodify?
Is it because of memory location?
+ 1
Thank u all for answering!
Where this const variables gets store?
Is it in global or stack? Or seprate memory..
0
Thanks !
0
Thanks !