Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Doesn't C language say that adding L or L after a number is a long integer?
Doesn't C language say that adding L or L after a number is a long integer?
Because you define the type of variable E as the type of int, the assignment statement e = 65536L automatically converts the type when assigning a long plastic constant 65535L to the plastic variable E, which is actually equivalent to: E = (int) 65535L;

If you want the value of e to be long, you must declare e as long.

E Long = 65535L