📜  c++ char define - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.080000             🧑  作者: Mango

代码示例1
// syntax: 
// char [] = { '<1st-char>',  '<2nd-char>', ... , '', '\0'}; 

// example (to store 'Hello' in the YourVar variable): 
char YourVar[] = {'H','e','l','l','o','\0'}; // NOTE: the \0 marks the end of the char array