What really happens when I assign a string literal to a character pointer? [duplicate]
let's say that I did
char* p = "ab";
what does the compiler/computer really do when it reads this line? Does it create a character array of fixed size 3 and p stores the address of the first character in this array?
Aucun commentaire:
Enregistrer un commentaire