Do problem today, I have been think long int than int data range wide, thinking along while, only to find that the two data range is the same?
CodePudding user response:
Int and long length is to look at the compiler, int at least 2 bytes, long not short in int, you said the two equal can only say that this is what your compiler implementation;For 64 - bit compilers, int is 32 bit length, and long int is a 64 - bit length (ubuntu system under test) in 64,
If you used turbo C, you can know the range of int said smaller than long;
CodePudding user response:
So thereInt8, int16, int32, int64 type,
CodePudding user response:
C standard specifies some type and then specifies the type of the minimum range without precise limits prescribed so is not the same as the implementation of different platformStandard setters with compiler implementer separation is the root cause of problem
Because there are too many C platform different platforms have different platforms demand so standard must be integrated various aspects interest (commonly known as muddle)
CodePudding user response:
https://zh.cppreference.com/w/c/language/arithmetic_types