C中有37个关键字
1 C关键字 C++比C多的关键字
2 auto asm
3 break bool
4 case catch/class/const_cast
5 char
6 const
7 continue
8 default delete/dynamic_cast/explicit/export
9 do
10 double
11 else
12 enum
13 extern
14 float false/friend
15 for
16 goto
17 if
18 inline
19 int
20 long mutable/namespace/new/operator/private/protected/public
21 register reinterpret_cast
22 restrict
23 return
24 short
25 signed
26 sizeof
27 static
28 struct
29 switch
30 typedef template/this/true/try/typeid
31 union
32 unsigned using/virtual
33 void
34 volatile
35 while wchar_t
36 _Bool
37 _Complex
38 _Imaginary
本文详细列举了C语言中的37个关键字,并对比了C++中额外增加的关键字。通过本文,读者可以快速了解C语言的基本构成元素及其与C++的区别。
1万+

被折叠的 条评论
为什么被折叠?



