What is the default data type of number in C?
问题 In C, unsigned int size = 1024*1024*1024*2; which results a warning "integer overflow in expression..." While unsigned int size = 2147483648; results no warning? Is the right value of the first expression is default as int? Where does it mention in C99 spec? 回答1: When using a decimal constant without any suffixes the type of the decimal constant is the first that can be represented, in order (the current C standard, 6.4.4 Constants p5): int long int long long int The type of the first