Question: 1. what is the difference between a variable and a literal in c/c++?
Answer: The difference between a variable and a constant (or literal constant) is that the constant, once defined, you cannot change its value. AGE is literal constant, 20 is the value assigned to it. ... You cannot assign a value to a literal constant. The literal constant is the value assigned to the variable.