When would someone use a constant variable? Isn’t the definition of variable to change?


well, if i have a list/array with the days of a week (or months of the year) they are not going to change, so then using a const is very good option


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.