C-- Review (2)

Basic data types : type integer and floating-point type

 

The basic integer types : int, char (character), _ Bool (Boolean value)

long, short, unsigned, signed to provide basic integer type int Variant (e.g.: unsigned int Short, Long Long int etc.)

unsigned, signed also be modified char

 

Basic floating-point type : a float, Double, Double Long, (float_Complex, double_Complex, Long double_Complex) - (three kinds of plural types), (float_Imaginary,

double_ Imaginary , Long double_Imaginary) - (imaginary three kinds of types)

 

Other types derived from the basic types : an array of pointers, structures, unions,

 

Some characters represent

  • Escape Sequences
  • ASCII value
    • Decimal digits
    • Octal or hexadecimal, this time represented as \ 007 (example)  

 

the sizeof () operator

sizeof is a C language built-in operators, in bytes of the specified type size, the use of % zd conversion described matching sizeof return type.

Example:

1 printf("Type int has a size of %zd bytes.\n", sizeof(int));

 

 

Xueshiqianbao, if wrong, implore treatise, the next would be grateful.

 

Guess you like

Origin www.cnblogs.com/yin-jie/p/11277920.html
Recommended