找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 310|回复: 1

Question1.12:What's the auto keyword good for?

[复制链接]

210

主题

371

回帖

0

积分

管理员

积分
0
发表于 2013-7-13 21:31:17 | 显示全部楼层 |阅读模式
Q: What's the auto keyword good for?

A: Nothing; it's archaic. (It's a holdover from C's typeless predecessor language B, where in the absence of keywords like int a declaration always needed a storage class.) See also question 20.37.

210

主题

371

回帖

0

积分

管理员

积分
0
 楼主| 发表于 2013-7-13 21:41:58 | 显示全部楼层
问题:这个关键字auto有什么好处?
回答:一点用处都没有。它很陈旧了。(它是来自于C的前身语言-----无类型的B语言----的遗物。B语言缺乏像int这种来声明存储类别的关键字)。参考问题20.37。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

果子博客
扫码关注微信公众号

Archiver|手机版|小黑屋|风叶林

GMT+8, 2026-2-2 02:53 , Processed in 0.089103 second(s), 20 queries .

Powered by 风叶林

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表