C关键字和C++关键字比较

本文详细列举了C语言中的37个关键字,并对比了C++中额外增加的关键字。通过本文,读者可以快速了解C语言的基本构成元素及其与C++的区别。

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

 

 

 

 

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值