C - pointer behavior with pre and post increment

前端 未结 6 1324
日久生厌
日久生厌 2021-01-22 08:50

In am doing some experiment in C pointers and trying to understand its behaviour. The following are my assumptions for the below codes. Correct me if I am wrong. I have the foll

6条回答
  •  无人及你
    2021-01-22 09:23

    Please check the link below: Difference between ++*argv, *argv++, *(argv++) and *(++argv)

    You need to know about operator precedence in-order to understand what is going on here.

    ++ operator has higher precedence over *

提交回复
热议问题