Assign a big number to unsigned int in C
问题 I am trying to assign a number to unsigned int, but it results in an error. I thought as long as the number is between 0 and 2^32, it should work. Here is my code. unsigned int number = 4026658824; However, I get this error. error: constant promoted according to the 1999 ISO C standard 回答1: Type of decimal constant depends on the type in which it can be represented, per 6.4.4.1 Integer constants: The type of an integer constant is the first of the corresponding list in which its value can be