Is ((void*)0) a null pointer constant?

后端 未结 3 497
谎友^
谎友^ 2020-12-12 19:20

I\'m reading this blog post and under the section Null pointer constants and parenthesized expressions the author references § 6.3.2.3 and § 6.5.1 from the

3条回答
  •  悲&欢浪女
    2020-12-12 19:53

    Try printing below line in your C code:

    printf("%p",(void*)0);

    You will get the output as:

    (nil)

提交回复
热议问题