constant variable is a contradiction | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

constant variable is a contradiction

Why not just call it a constant? Adding "variable" seems contradicting.

1st Dec 2016, 12:35 AM
Bjørnar Jakobsen
Bjørnar Jakobsen - avatar
2 Answers
+ 5
Agree... I guess the historical use of the term "variable" is to mean 'some place in the cpu's memory to allocate a value'... Then quoting it as "constant" means (of course) that this piece of memory cannot be altered. The precise meaning of "constant variable" I find clear, though.
1st Dec 2016, 7:09 AM
Álvaro
0
just accept it. its way easier
1st Dec 2016, 12:45 AM
Gustavo Luis
Gustavo Luis - avatar