Documente Academic
Documente Profesional
Documente Cultură
Public:- data and function inside the public accessible outside the class
Private:- Private data members and function accessible only within the class cannot
be accessed outside.
Protected:- data member and function accessed only my derived classes.
20) What is the difference between char a[] = “string”; and char *p = “string”; ?
a[] will have 7 bytes and char *p= “string” is only 4 bytes since it is pointing to the
address.