# define _ CRT _ SECURE _ NO _ WARNINGS 1
# include & ltstdio.h & gt
# include & ltstdlib.h & gt
int main()
{
int a = 10;
int b = 20
int c = 0;
printf("a = %d? b = %d\n ",a,b);
c = a;
a = b;
b = c;
printf("a = %d? b = %d\n ",a,b);
System ("suspended");
Returns 0;
}
Extended data
The integer data of SQL include bigint, int, bit, smallint and tinyint.
The storage size of bigint data is 8 bytes with ***64 bits. Among them, 63 bits are used to indicate the size of the value, and 1 bit is used to indicate the symbol. Bigint data can be stored in the range of -263 ~ 263- 1, that is,-9 223 372 036 854 775 808 ~ 9 223 372 036 854 775 807. ?
In an application, functions, statements and system stored procedures that accept int expressions as their parameters will not change unless explicitly declared, so implicit conversion of bigint expressions into these parameters is not supported. Therefore, when the bigint value is within the range supported by the int data type, SQL Server will implicitly convert bigint to int.
If the bigint expression contains values beyond the range supported by the int data type, a conversion error will occur at run time.