Const | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Const

Can we reassign the value to constant?

12th Jul 2016, 5:31 AM
Manu
2 Answers
+ 1
No. You may only make a value constant from the Initialization part.
12th Jul 2016, 6:37 AM
Erwin Mesias
Erwin Mesias - avatar
0
No.You cant...bcz the name itself telling that the value is constant...you cant change const value through out the program.
12th Jul 2016, 10:17 AM
Santhosh