Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C 奇怪的结构和类型定义_C_Gcc_Struct - Fatal编程技术网

C 奇怪的结构和类型定义

C 奇怪的结构和类型定义,c,gcc,struct,C,Gcc,Struct,我遇到了这个结构声明,现在不知道最后一个指针在这里做什么 typedef const struct { //Ommiting the members for stackoverflow!!! } PWMnCurrFdbkParams_t, *pPWMnCurrFdbkParams_t; 所以问题是 这里的,有什么影响 什么类型的*pPWMnCurrFdbkParams\u t 它有什么用途 这是很常见的,例如,Microsoft在其头文件中经常使用它 这里定义了两种类型(逗号分隔),

我遇到了这个结构声明,现在不知道最后一个指针在这里做什么

typedef const struct
{
   //Ommiting the members for stackoverflow!!!

} PWMnCurrFdbkParams_t, *pPWMnCurrFdbkParams_t;
所以问题是

  • 这里的
    有什么影响
  • 什么类型的
    *pPWMnCurrFdbkParams\u t
  • 它有什么用途

    • 这是很常见的,例如,Microsoft在其头文件中经常使用它

      这里定义了两种类型(逗号分隔),
      PWMnCurrFdbkParams\u t
      类型为
      const struct
      pPWMnCurrFdbkParams\u t
      是指向该
      const struct
      的指针

      *
      不是名称的一部分,正如
      int*x
      x
      是指向
      int
      的指针一样

      用例几乎是任何结构的集合,如链表或树。

      看看:希望这有帮助。