Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ char define


// syntax: 
// char <variable-name>[] = { '<1st-char>',  '<2nd-char>', ... , '<Nth-char>', ''}; 

// example (to store 'Hello' in the YourVar variable): 
char YourVar[] = {'H','e','l','l','o',''}; // NOTE: the  marks the end of the char array
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #char #define
ADD COMMENT
Topic
Name
7+4 =