C语言中有多少关键字我们会用到呢
在C语言中的关键字共有32个
其中这些关键词可分为数据类型关键字、控制语句关键字、存储类型关键字和其它关键字四类。
(1)数据类型关键字(12个):
char, double, enum, float, int, long, short, signed, struct, union, unsigned, void
(2)控制语句关键字(12个):
break, case, continue, default, do, else, for, goto, if, return, switch, while
(3)存储类型关键字(4个):
auto, extern, register, static
(4)其它关键字(4个):
const, sizeof, typedef, volatile
2.控制语句:
控制语句完成一定的控制功能。C语言只有9条控制语句,又可细分为三种:
( 1)选择结构控制语句
if()~else~, switch()~
(2)循环结构控制语句
do~while(), for()~, while()~, break, continue
(3)其它控制语句
goto, return
3。函数:
字符串函数bcmpbcopybzeromemccpymemchrmemcmpmemcpymemicmpmemmovememsetmovmemsetmemstpcpystrcatstrchrstrcmpstrcmpistrcpystrcspnstrdupstricmpstrlenstrlwrstrncatstrncmpstrncmpistrncpystrnicmpstrpbrkstrrevstrsetstrstrstrtokstrupr数学函数absacosasinatanatan2ceilcoscoshexpfabsfloorfmodfrexphypotldexploglog10modfpowpow10sinsinhsqrttantanh输入输出函数getcharkbhitprintfputchar系统库函数ClearScreenDispBCDSetScrollBarTextOutUpdateLCDbellblockclrscrcursordelayget_chi_fontget_eng_fontgetkeygetpixelgotoxylinemovenoidleouttextxyputpixelpyfcrectanglesleeptextmodetimewrite_chi_fontwrite_eng_font标准函数exititoa字符函数isalnumisalphaiscntrlisdigitislowerisasciiisgraphisprintispunctisspaceisupperisxdigittoasciitolowertoupper动态内存分配函数callocfreemallocrealloc
以上便是小编对“C语言中有多少关键字我们会用到呢?”的大致介绍,希望能有所帮助。