I think “*p++ = *q++;” is equal to “*p = *q; ++p; ++q”, why does the output is different from my expectation?

前端 未结 0 1914
忘了有多久
忘了有多久 2020-12-19 08:25

enter image description here

I think the program will follow these steps:

  1. *p = *q; // both p and q point to x[1];
  2. ++p; ++q; // both p and q\'s a
相关标签:
回答
  • 消灭零回复
提交回复
热议问题