Question:
Write the output of the following C++ program code:
Note: Assume all required header files are already being included in the program.
void Location(int &X,int Y=4)
{
Y+=2;
X+=Y;
}
void main()
{
int PX=l0,PY=2;
Location(PY) ;
cout<<PX<<" , "<<PY<<endl ;
Location(PX,PY);
cout<<PX<<" , "<<PY<<endl ;
}
C. Sir| Created: 7-Jan-2019 | Updated: 22-Mar-2026|CBSE12A-2015
