104 101 108 108 111 !@ !@ 32 33 64 0 0 |
|
|
char reply[20] = {0};
104 101 108 108 111 0 0 0 0 0 |
|
|
"hello"
is really just a pointer to static data. Assigning it to p doesn't copy character by character the array into reply. It merely makes p point to a different array.
|
|
|
|