#include<iostream.h>
int maxref(int &a, int &b)
{
if(a>b)
return a;
else
return b;
}
void main()
{
int x=20, y=30, max=0;
maxref(x,y)=-1;
cout<<"\n Value of x is"<<x;
cout
cout<<"\n value of y is:"<<y;
getch();
}
output
value of x is : 20
value of y is : -1
How this output displayed. why value of y is assigned =-1