是“私人”一个C的关键字? [英] Is 'private' a C keyword?
问题描述
是私人或ANSI C(或任何其他C为此事),还是他们只在C ++中加入(和Java,C#,...)?'公'的关键字
Are 'private' or 'public' keywords in ANSI C (or any other C for that matter), or were they only added in C++ (and Java, C#, ...)?
推荐答案
私人
不是C89或C99关键字。请参见 C程序设计/参考表格上的维基的*。
private
is not a C89 or C99 keyword. See C Programming/Reference Tables on Wikibooks*.
此外,C无关**做Java和C#(和,真的,不是C ++其一)。然而,反之则不然 - C ++从C的增长,例如:
Also, C has nothing** to do with Java and C# (and, really, not C++ either). However, the converse is not true -- C++ grew from C, for example.
的 *更好的参考需要!的
的 **其实, C89借来的从C ++
常量和挥发性
关键字。同样,C99借来的在线
关键字,并且还增加了 _Bool
和 _Complex
(如C ++的布尔
和复杂分别为
) [引文需要] 的
* Better reference needed!
** Actually, C89 "borrowed" the const
and volatile
keywords from C++. Likewise, C99 "borrowed" the inline
keyword, and also added _Bool
and _Complex
(like C++'s bool
andcomplex
, respectively) [citation-needed].
这篇关于是“私人”一个C的关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!