+ 1

Char pointer dereference? Char array vs Char*?

Why don' we have to dereference char pointer like we do with example int* ? Code example #1. Also, what is the difference between char* and char[] ? In some resources it says they are pretty the same, but code example #2 will fail. I know string literals are in ROM memory, but still. Thanks! https://code.sololearn.com/cVNywIySJ7hK/?ref=app

20th Sep 2019, 5:51 PM
Nemanja Kuzmić
Nemanja Kuzmić - avatar
0 Respuestas