What is private and protected in C?

In c++ public, private and protected are access specifiers which controls missus of member variable of the class, outside of the class Public = publically access outside of the class Private= only in class variables accessible Protected =it is use in inheritance for inherite the member variables of the class to another class
For More Information Please Refer:


You May Also Like to Read: