class P{
public:
P(int x,int y) { cout << "constructor called" << endl;}
};
int main ()
{
P(5,4); // constructor called
P p(5,4); // constructor called
return 0;
}
What is the difference between the above two constructor calls?
How does P(5,4)
call the constructor?