Skip to content

第三章第7节「引用类型」:对“C语言未初始化的指针”描述问题 #29

Description

@timo1160139211

原文:
“ 这和C语言的指针含义完全一样:在C语言中,任何指针在初始化之前都是null指针,直接使用null指针是有风险的。”

问题:
未初始化之前是作为“野指针”存在,随机指向一块内存区域。

调整:
具体调整见diff。

*参考
各大型C语言书籍。
http://blog.csdn.net/zhaojinjia/article/details/8770989
https://lzw.me/a/yezhizhen.html
http://blog.csdn.net/mhjcumt/article/details/7351032

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions