+ 1
How works char* ?
the c++ challenge have some queations about this like: char* var = "abc"; char* var2 = ++var; return *var2;
1 Respuesta
+ 1
I undestand char* now is a pointer of an character into a "string"
and ++var move the pointer one character to the right.
if we dont use the * before the variable name it return all the characters from the actual pointing character ot the last.