In C, am I allowed to compare a pointer to NULL using `<` or `>`?

前端 未结 0 1808
再見小時候
再見小時候 2020-12-08 02:18

In C, is it OK to compare pointers to NULL using the < or > operators? Or is that undefined behavior?

if (NULL < p) {
   //         


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