120k views
4 votes
what is the default access specifier for data members or member functions declared within a class without any specifier, in c ?

1 Answer

7 votes

Answer:

nothing

Step-by-step explanation:

C is a programming language that was developed in the early 1970s, it doesn't have built-in support for object-oriented programming concepts like classes, inheritance, and access specifiers. Struct and union are used for grouping data and doesn't have the same functionality as classes in C++. It doesn't have access specifiers such as public and private. The code written in C is still widely used today, but if you want to use object-oriented programming and access specifiers, you will need to use a language like C++ or Java.

User Sami Sallinen
by
7.5k points