c++typedef
时间: 2023-10-12 11:05:18 浏览: 92
typedef可以用来给现有的类型起一个别名。在这种情况下,你提到了要定义相同类型的变量c,只需要使用typedef来定义。因此,你可以使用以下方式定义相同类型的变量c:
typedef int *(*A<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [C/C++ typedef用法详解](https://blog.csdn.net/a472725641/article/details/52869645)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [C语言中的复杂声明和定义,以及如何使用typedef进行简化](https://blog.csdn.net/skywalker_leo/article/details/48622193)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文