_ Int64 is a signed 64-bit integer data type, that is, long in C # And bigint in SQL Server. The value range is-2 ^ 63 (-9,223,372,036,854,775,808) to 2 ^ 63-1 (9,223,372,036,854,775,807), the storage space occupies 8 bytes. Used when the integer value may exceed the range supported by the int data type.
_ Int64 is created by Microsoft. If you want to use a 64-bit integer type, long is included in C, as follows:
# Include <stdlib. h> # include <stdio. h> # include <limits. h> int main (void) {long llnum = llong_max; unsigned long ullnum = ullong_max; printf ("% LLD \ n % LlU", llnum, ullnum ); return exit_success ;}
Reference: ANSI c99
Use _ int64 for VC, BCB, and mingw GCC in Microsoft Windows, as follows:
_ Int64 N; scanf ("% i64u", & N); printf ("% i64u \ n", N );
Mingw GCC also supports long declaration, but the input and output format strings still start with i64.
The _ int64 keyword and % i64 label are indeed proprietary to Microsoft. Standard C uses long and % LLD. Therefore, programming in UNIX, Linux, and cygwin should adopt standard usage.