As we all know, int is the default of 4 bytes under Linux system, and the value range is: -2147483648~2147483647. Even the unsigned unsigned int type represents the range: 0-4294967295, approximately 4.2 billion.
In most cases, the type of int can meet the needs, but there are no shortage of special circumstances; today, when doing ineedle test, the contract tool is used to contract, the speed is fast, the int type has not satisfied the demand. It is time to think of a long long int type, a long long int with a range of values: -9223372036854775808--9223372036854775807;unsigned long Long int type value range: 0--18446744073709551615. This range of values is still surprisingly large, and it occupies 8 bytes in memory.
When using printf you need to be aware of:
Represents unsigned long long:printf ("num =%llu\n", num);
Represents a long long int:printf ("num =%lld\n", num);
?
C language basic type long long int