Need to clarify something ( since searching using the word "constants kills the engine")
Apart from good practice of using constants where a variable will never change in the program. What other benefits does a programmer get?
Some ideas I assume may be correct is less memory allocation? Like a constant will never change, therefore less memory will be allocated. Perhaps from this a VERY small improvement in performance?
Cheers
mango
Apart from good practice of using constants where a variable will never change in the program. What other benefits does a programmer get?
Some ideas I assume may be correct is less memory allocation? Like a constant will never change, therefore less memory will be allocated. Perhaps from this a VERY small improvement in performance?
Cheers
mango