[语法问题]有关C语言关键字的问题!在线等

39457760 2006-11-20 07:51:14
没找到C语言标准的文档!

请教asm const try catch throw是不是C语言中的关键字?



...全文
297 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
39457760 2006-11-20
  • 打赏
  • 举报
回复
结帐了
39457760 2006-11-20
  • 打赏
  • 举报
回复
今天看了一本书上把overload也算做C++保留字
比较奇怪

果然是 尽信书不如无书
飞哥 2006-11-20
  • 打赏
  • 举报
回复
都在这了

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

bool catch class const_cast delete dynamic_cast explicit false friend inline mutable namespace new operator private protected public reinterpret_cast static_cast template this throw true try typeid typename using virtual wchar_t

asm cdecl far huge interrupt near pascal export except fastcall saveregs stdcall seg syscall fortran thread
lj860603 2006-11-20
  • 打赏
  • 举报
回复
overload是C++的保留字么?
-----------
不是
39457760 2006-11-20
  • 打赏
  • 举报
回复
再问一个,有答案就结贴
overload是C++的保留字么?
飞哥 2006-11-20
  • 打赏
  • 举报
回复
或者不叫借鉴,是发现c++中比较好
预留的
飞哥 2006-11-20
  • 打赏
  • 举报
回复
c语言的const没啥用
跟c++还有很大区别

只是借鉴了c++的const
lj860603 2006-11-20
  • 打赏
  • 举报
回复
fortran , asm 在某些地方可能还是被认为是关键字,比如说TC,可能因为TC比较古老。
lj860603 2006-11-20
  • 打赏
  • 举报
回复
在TCPL中后面的附录上有C中关键字的简介。

虫子给出的关键字中:
const,signed, volatile是ANSI标准中添加的。
以前还有个entry但是现在已经被删除了。
39457760 2006-11-20
  • 打赏
  • 举报
回复
只要标准的,不要扩展的
jixingzhong 2006-11-20
  • 打赏
  • 举报
回复
try catch throw 是C++中的关键字,
C 中无论是否扩展,
都没有这些关键字 ~
jixingzhong 2006-11-20
  • 打赏
  • 举报
回复
上面的是 标准规定的 关键字,
同时,各个环境可能定义了自己的关键字, 比如:

Turbo C2.0扩展的共11个
asm _cs _ds _es _ss cdecl
far near huge interrupt pascal
jixingzhong 2006-11-20
  • 打赏
  • 举报
回复
由ANSI标准定义的关键字共32个
auto double int struct break else
long switch case enum register typedef
char extern return union const float
short unsigned continue for signed void
default goto sizeof volatile do if
while static
jixingzhong 2006-11-20
  • 打赏
  • 举报
回复
const 是, 其他不是 ...

70,037

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧