[Solved] In c++ what is the difference between a char and a const * char and why can’t you add two chars together

[ad_1]

const means constant, so const char* means a constant char pointer, or a char pointer that cannot be modified, but a char can be modified because it is not a constant, but can only hold one character because it isn’t a pointer (a.k.a. a char array). Anyway, have you tried combining the two variables with strcat(CHAR1, CHAR2)?

3

[ad_2]

solved In c++ what is the difference between a char and a const * char and why can’t you add two chars together