C语言的演变
1)C语言的最新版本是什么? 2) GCC 是如何遵守的? 3)对于一个老C程序员来说,新语言的主要区别是什么?
我问这个问题是因为我最近了解到(一项新功能)我们实际上可以将值归因于结构,例如:
struct t
{
int i;
char c;
} s;
s = (struct t){exponent, coefficient};
所以我想知道编程时可能会丢失的其他内容...
谢谢, 贝科
1) What is the newest version of C language? 2) How is GCC complying to it? 3) For an old C programmer, what is the main differences of the new language?
I'm asking this because I learned these days (a new feature) that we can actually attribute values to a struct like:
struct t
{
int i;
char c;
} s;
s = (struct t){exponent, coefficient};
So I'm wondering about other things I might be missing when programming...
Thanks,
Beco
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
C语言的最新版本似乎是C99。在众多的变化中,最重要的恕我直言是:
restrict
指针//
注释这里是一个更大的列表。
The most recent version of C language seems to be C99. Among the numerous changes, the most important IMHO are:
restrict
pointers//
commentsHere is a bigger list.
最后一个标准是C99。我不使用这个标准,因为 GCC 尚未完全支持。 (参见此处)
有“C1X”,但谈论它还为时过早它。
有关 C99 中的新功能,请参阅以下帖子:
什么是C99 中最有用的新功能是什么?
The last standard is C99. I don't use this standard because GCC does not yet fully support. (see here)
There is "C1X" but it is much too premature to talk about it.
For the new features in C99, see the following post :
What are the most useful new features in C99?
WG 14 小组正在制定下一个标准,他们的主页在这里 。 “News 2010-12-05”链接会将您带到当前草案的 PDF,标记为“201x”。第 6 段和第 7 段强调了变化。谷歌搜索“+gcc +c201x”给出了合理的命中率,没有什么可以钉在墙上的。这个过程像蜗牛一样缓慢,C99 也还没有普遍实现。
The next standard is being worked on by the WG 14 group, their home page is here. The "News 2010-12-05" link takes you to a PDF of the current draft, labeled "201x". Paragraphs 6 and 7 highlight changes. Googling "+gcc +c201x" gives reasonable hits, nothing much to nail to a wall. This moves slow as a snail, C99 is not universally implemented yet either.