I am confused.
Here is the source: http://www.learncpp.com/cpp-tutorial/28-constants/
Literal constants
Literal constants are literal numbers inserted into the code. They are constants because you can’t change their values.
Why can't we change literal constant? I mean if we want to initialize something, let say
int x = 14;
And let say I am writing a program which involves passing x to a function, and return the new x after performing some arithmetic, then why did someone define that as a constant, when we are allowed to modify it?
Thank you.