Function-to-function-pointer “decay”

前端 未结 4 2061
傲寒
傲寒 2020-11-30 14:48

As we know a parameter that looks like void() will be rewritten as void(*)(). This is similar to array-to-pointer decay where int[] be

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 15:23

    yes they are both pointers, first is a function pointer, second is a pointer to a block of ints. * looks like a point.

提交回复
热议问题