常见关键字

常见关键字
auto break case char const continue default do double else enum
extern float for goto if int long register return short signed
sizeof static struct switch typedef union unsigned void volatile while

关键字typedef的功能为类型重命名
用法:

#include<stdio.h>
typedef unsigned int xint;//将unsigned int这个类型重新定义成xint,方便下次使用
int main()
{
    
    
	unsigned int num = 10;
	xint a = 20;
	printf("%d %d", num, a);//10 20
	return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_52454367/article/details/112658408