Char c =' a// It needs a character.
char c[]= " a "; //Take up two.
char c[]= " abcde "; //4+ 1 = 5, with a' \0' at the end.
2. Numbers: There are many Chinese characters, from small to large: short, int, float, long and double.
They are: 1, 2, 4, 8, 16.
3. Chinese characters: theoretically, one Chinese character accounts for two characters. For example, China has four words. If so:
Char c[] = "China"; //takes up 4+ 1 = 5 characters.
Char c =' medium// error, cannot be calculated like this.
Extended data 1, C language is a general computer programming language, which is widely used in the underlying development. The design goal of C language is to provide a programming language that can compile and process low-level memory in a simple way, generate a small amount of machine code and run without any support of running environment.
2. The data types of C language are: integer, real number, character, array, pointer, structure and * * * object. Can be used to realize the operation of various complex data structures. The concept of pointer is introduced to improve the efficiency of the program.
3. Because C language allows direct access to physical addresses and can directly operate hardware, it has both the functions of high-level languages and many functions of low-level languages, and can operate bits, bytes and addresses like assembly languages. These are the most basic working units of computers and can be used to write system software.
Reference materials? Baidu encyclopedia -C language