== for pointer comparison

前端 未结 5 1145
终归单人心
终归单人心 2021-01-03 19:35

I quote from \"The C Programming Language\" by Kernighan & Ritchie:

Any pointer can be meaningfully compared for equality or inequality with zero.

5条回答
提交回复
热议问题