是“私人”一个C的关键字? [英] Is 'private' a C keyword?

查看:120
本文介绍了是“私人”一个C的关键字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是私人或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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆