Home > Back-end >  CPP in the new address is the same
CPP in the new address is the same

Time:04-26


Why every time the new address is the same, but also can appear garbled???

CodePudding user response:

& P is a pointer to a char *, also is a pointer to a pointer, rather than p address, & amp; P is a char * *, it refers to the variable memory contains an address, the address is the value of the p
Gibberish because p did not use '\ 0' end,

CodePudding user response:

reference 1/f, the truth is more important than right or wrong response:
& amp; P is a pointer to a char *, also is a pointer to a pointer, rather than p address, & amp; P is a char * *, it refers to the variable memory contains an address, the address is the value of the p
Gibberish because p did not use '\ 0' end,

So how to get the address of a char? Grammar is p (int)?
  • Related