Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - int I = 10; I is a variable. Is 10 a constant?
int I = 10; I is a variable. Is 10 a constant?
That's not true, int I =10; Such a me is a variable, because I can be changed, thinking it is 8, 9 or something;

And constint I =10; ; Then I is a constant because I is immutable, but I is used to represent 10.

Defined as follows:

In the process of program execution, the quantity with constant value is called constant, and the quantity with changed value is called variable.