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;
}