Why const value can not be changed during runtime? Explain please
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted Sep 11, 2022, 3:58 AM EDT
Const is a compiled time const. Which means once it's declare we cannot change the value.
Also please refer below video link for better understanding.
https://youtu.be/vNPBWNNlDwM
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 11, 2022, 4:53 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Sep 11, 2022, 5:44 AM EDT