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#, …)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
privateis not a C89 or C99 keyword. See C Programming/Reference Tables on Wikibooks*.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.
* Better reference needed!
** Actually, C89 ‘borrowed’ the
constandvolatilekeywords from C++. Likewise, C99 ‘borrowed’ theinlinekeyword, and also added_Booland_Complex(like C++’sboolandcomplex, respectively) [citation-needed].