46 strings and character array

1, used to store an array of characters called character array

2, character array is actually a collection of characters is a string (String), in the C language, there is no specific string variable, not a string type, usually with a character array to store a string

3, C language, a null character string actually used ( '\ 0') terminated one-dimensional array of characters, and therefore, a null-terminated string containing the character string.

4, '\ 0' is the ASCII code table 0th character, represented by NULL, called null character that neither display nor control character, outputting the character does not have any effect, it is in C only marks the end of the string.

5 layout analysis, character array (string) in memory

  

 

Guess you like

Origin www.cnblogs.com/shanlu0000/p/12355283.html