当前位置:网站首页>C language elementary level (10) type rename typedef
C language elementary level (10) type rename typedef
2022-06-21 13:22:00 【Princess Kaka】
One . Basic type rename
typedef type New name ;Two . Structure / Consortium type rename
typedef struct {
member ;
} Type name ; stay typedef Define the structure at the same time , Structure pointer can be defined .
typedef struct{
int x;
int y;
int z;
} Point3D,*pPoint3D;
Point3D p = {1,2,3};
pPoint3D q = &p;3、 ... and . Function pointer type rename
typedef Return type (* Function pointer type )( Parameters )example :
int add(int a,int b){return a+b;}
typedef int (*opt)(int,int); // Define function pointer type
opt fpadd = &add; // Define function pointers and assign values
printf("%d\n",(*fpadd)(1,3));边栏推荐
- Cvpr2022 | the action sequence verification task was first proposed by X xiaohongshu of Shanghai University of science and technology, which can be applied to multiple scenarios such as scoring of spo
- Mvcc in PostgreSQL
- 不止于ZeRO:BMTrain技术原理浅析
- May the mountains and rivers be safe
- Questions and answers No. 43: application performance probe monitoring principle PHP probe
- 基于STM32电压检测和电流检测
- scrapy_redis分布式爬虫
- Sharing new experiences in home office | community essay solicitation
- 【深入理解TcaplusDB技术】Tmonitor后台一键安装
- 8. structure
猜你喜欢

这不会又是一个Go的BUG吧?

Hands on data analysis unit 2 section 4 data visualization

Summary of the latest remote deployment O & M tools

Are you still using generator to generate crud code of XXX management system? Let's see what I wrote

Summary of several ways to calculate distance

Work content of service governance

高效远程办公手册| 社区征文

SCCM基于已安装的 APP创建客户端集合并定期推送应用更新

Matplotlib drawing tips
MySQL constraints (descriptions of various conditions when creating tables)
随机推荐
Hands on data analysis unit 2 section 4 data visualization
Is the live interactive function of the applet running in the app?
Test the interface between app and wechat applet
对app和微信小程序进行接口测试
2. reference
uva11991
3. operator
如何使用搜索引擎?
[course assignment] floating point operation analysis and precision improvement
Is the micro securities account opening regular and safe? How to open an account?
Kubernetes快速實戰與核心原理剖析
微证券开户正规安全吗,怎么操作开户?
What is Devops in an article?
Nanjing University static program analyses -- Introduction learning notes
MySQL constraints (descriptions of various conditions when creating tables)
【深入理解TcaplusDB技术】Tmonitor后台一键安装
8. structure
Centos7 deploying MySQL environment
居家辦公初體驗之新得分享| 社區征文
Shell process control - 35. Multi branch case conditional statements