Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

char * enigma

$
0
0
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:
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 ?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>