Hello ![:)]()
I'm trying to understand how char* works. I searched all the day but I couldn't find a good explanation...
When creating a pointer you initialize it with an address,for example:
So the side left the equal sign is an address.
In this case:
The left side doesn't look like an address...
Can someone explain me how this work ?
I'm trying to understand how char* works. I searched all the day but I couldn't find a good explanation...
When creating a pointer you initialize it with an address,for example:
int a; int *p=&a;
So the side left the equal sign is an address.
In this case:
char *p="troll";
The left side doesn't look like an address...
Can someone explain me how this work ?