What is the difference between NULL, '\0' and 0?

前端 未结 11 1259
無奈伤痛
無奈伤痛 2020-11-21 16:32

In C, there appear to be differences between various values of zero -- NULL, NUL and 0.

I know that the ASCII character

11条回答
  •  独厮守ぢ
    2020-11-21 17:09

    A one-L NUL, it ends a string.

    A two-L NULL points to no thing.

    And I will bet a golden bull

    That there is no three-L NULLL.

    How do you deal with NUL?

提交回复
热议问题