Null pointer --C ++ 11 (f)

  • All pointer types share the same nullptr, show no object pointer can point to.
  • In function, the argument pointer should be accepted if it is a null pointer test.
  • In legacy code, instead of 0 and with nullptr NULL, but can be used to avoid confusion nullptr integer (0) and the pointer (nullptr).

Guess you like

Origin www.cnblogs.com/share-ideas/p/11886780.html