Is NULL the same as False in C++

前端 未结 4 859
你的背包
你的背包 2021-01-12 12:03

In C++ (gcc,VS) is NULL considered the same as False. Or more importantly if in a logical statement what does NULL evaluate to. There were a number of other questions but no

4条回答
  •  别那么骄傲
    2021-01-12 12:18

    I believe NULL is generally defined to be 0, which coincidentally evaluates to false when used as a boolean expression.

提交回复
热议问题