【问题标题】:What is the difference between struct node* node and struct node *node? [duplicate]struct node* node 和 struct node *node 有什么区别? [复制]
【发布时间】:2015-06-11 10:35:35
【问题描述】:

我是指针新手,我不知道这一点。请指导。

提前致谢。

【问题讨论】:

  • 没有任何区别。你冷也写struct node * node
  • 空格没有区别。您的问题使用名称“节点”作为数据类型和数据名称 - 这在语法上不正确,但注释仍然正确。

标签: c++ pointers data-structures structure


【解决方案1】:

绝对没有语义上的区别,这是纯粹的风格选择。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-28
    • 2016-03-03
    • 1970-01-01
    • 2014-08-28
    相关资源
    最近更新 更多