Answers for "unsigned char to string in c++"

1

c++ char define

// 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
Posted by: Guest on April-29-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language