Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Int unsigned type conversion in C language
Int unsigned type conversion in C language

Yes, int will be automatically converted to unsigned type;

Conversion rules: Convert the shorter storage length to the longer storage length without losing information;

Common type conversion sequence: char, short -> int -> unsigned -> long int -> double <- float

That is, if there is double type in the operation, all other types will be converted to double type. .