Find out the error in the below code.
Class A
{
int p;
int q;
public :
int r;
};
int main()
{
A a1;
a1.p=4;
a1.r=4;
return 0; }
Answers
Answered by
0
Answer:
Find out the error in the below code.
Class A
{
int p;
int q;
public :
int r;
};
int main()
{
A a1;
a1.r=4;
return 0; }
Explanation:
int p is private and can not be accessible.
Similar questions