Why does the comparison with integer works for nullptr?

后端 未结 0 848
别那么骄傲
别那么骄傲 2020-12-06 17:20

The following works for g++

assert(nullptr == 0);

I need to know if there is any implicit type conversion that is happening. From what I know

相关标签:
回答
  • 消灭零回复
提交回复
热议问题