Default value of a function pointer in C++

后端 未结 5 1354
说谎
说谎 2020-12-18 05:18

What is the default value of a function pointer in C++? (Apparently it can\'t be NULL, so what is it?)

How is this program supposed to behave and why?

5条回答
  •  伪装坚强ぢ
    2020-12-18 06:06

    Function pointer can be NULL, this way you can indicate that they don't point to anything!

提交回复
热议问题