Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Is it true that all decimals in C language int are automatically converted into integers?
Is it true that all decimals in C language int are automatically converted into integers?
X=4。 Because 432 and 100 are integers, the result only takes the integer part. There will be a warning (not an error) at compile time, and the current type of x will cause the result to be partially lost. Int is a defined type, and of course it is only valid for xyz. If there is a new definition, it will follow the new definition type. Xyz belongs to the type of int, so it can't be said that int is aimed at those numbers or the whole program.