in this page Pointers and string literals section the web site says const char * foo = "hello"; and when we do output foo it shall return the address of the string literals, I tried this at home, but i get "hello", and when i do *foo I also get "hello", my question is is the website wrong ? thanks.
Aucun commentaire:
Enregistrer un commentaire