Strcpy (pStr, "hello");
Printf (" % % % p % c p c \ n ", pStr++, * pStr, pStr++, * pStr);
The delete [] p_Str;
The output is:
F9 003878 l, 003878 l f8
Please press any key to continue...
If the printf calculation from right to left, it is right.
If from left to right, the output of the printf is right.
Why the output of: * pStr values are the same, but is not the same as the pStr?
Daniel, please explain in detail, the concrete operation process, and the output process, (the above output is run in VS2008)
CodePudding user response:
The last line in the program can be ignored: delete [] p_Str;