Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the data type of 2 to the 32nd power in C language?
What is the data type of 2 to the 32nd power in C language?
Generally, it is plastic surgery, accounting for 4 bytes (32 bits), with the highest bit representing a symbol, 0 representing a positive number, and 1 representing that the storage order of negative numbers in the memory is the first and the high bit is the last. For example, 0x 12345678 is stored in the memory as follows:

Address: 0x0012f780x0012f790x0012ff7a0x0012ff7b.

Data: 78 56 34 12

Definition: use int keyword, for example, int a=6.

Generally speaking, the six keywords short, int, long, char, float and double represent six basic data types in C language. When the identifier consists of multiple words, the first letter of each word is capitalized and the rest are all lowercase. For example: intCurrentVal;; Such a name seems clear at a glance, far better than a long string of characters.

The source code is as follows:

# include & ltstdio.h & gt

int main()

{

char ic

Double DD;

IC = 1;

DD = 1. 1;

printf("%ld,%ld,%ld,%ld,%ld\n ",

sizeof(char),sizeof(short int),

sizeof(long int),sizeof(float),sizeof(double);

Returns 0;

}

Extended data

The source code of mixed operation between different types is as follows:

# include & ltstdio.h & gt

int main(void)

{

int iint 1 = 1;

char cChar = ' A

float fFloat = 2.2f

double result = iint 1+cChar+ff loat; //

printf("%f\n ",result); //Print the output results

Returns 0;

}