1.

What Is A 'const' Variable?

Answer»

In simple terms 'const' MEANS 'read only'. Its value is not changed by any part of the code executed. So COMPILER can optimize by taking this info, and also it will GIVE WARNING when user TRY to change the value of this variable by mistake.

In simple terms 'const' means 'read only'. Its value is not changed by any part of the code executed. So compiler can optimize by taking this info, and also it will give warning when user try to change the value of this variable by mistake.



Discussion

No Comment Found