Home > Back-end >  A character array.
A character array.

Time:01-07

Char a []={' c ', 'h'};
Enter such a character array, the system will automatically add a '\ 0' inside?
Or just the char [] a={' ch '}; This will add a backslash zero,

CodePudding user response:

Single quotation marks that is character, does not automatically add 0
Double quotes that are strings, automatically adding 0
  • Related