How are function pointers type unsafe

前端 未结 4 1408
野性不改
野性不改 2021-01-11 18:08

First of all type-safe means that anything that a compiler can catch straight away if done incorrectly.

Now, I heard function pointers are not type safe however when

4条回答
  •  醉酒成梦
    2021-01-11 18:23

    Function pointers are type safe. However, many environments force upon the programmer the need to recast them. An incorrect casting could cause significant problems.

提交回复
热议问题