Where exactly do function pointers point?

后端 未结 5 2166
栀梦
栀梦 2021-02-13 04:41

Given that all the primitive data types and objects have memory allocated, it is intuitively easy to imagine the pointers to these types.

But where exactly do function p

5条回答
  •  天命终不由人
    2021-02-13 05:43

    It's a code pointer. It points to the function's address. It is essentially as you described. And yes, if you have pointers that don't point to what you expect, you will have problems.

提交回复
热议问题