working with char and string c++
// syntax:
// char <variable-name>[] = { '<1st-char>', '<2nd-char>', ... , '<Nth-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
3.57
7
String and Char
Thank you!
7
0
Are there any code examples left?
New code examples in category C++