Tricky pointer question

后端 未结 4 954
北荒
北荒 2021-02-07 15:17

I\'m having trouble with a past exam question on pointers in c which I found from this link, http://www.cl.cam.ac.uk/teaching/exams/pastpapers/y2007p3q4.pdf

The question

4条回答
  •  我寻月下人不归
    2021-02-07 15:18

    The expression is parsed as &((*pps)[1]); pps is being treated as a pointer to an array, you're accessing the first element of that pointed-to array, and then taking the address of that element.

提交回复
热议问题