This code is calling a class Rectangle where there is an area function defined, it is calculating the area and returning it. but I have a doubt where is the object p created for this class in the memory.
int main() {
Rectangle r;
Rectangle *p;
p = &r;
r.length = 10;
r.breadth = 10;
cout<<p-> area();
return 0;
}