Quick Print – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
siteicon
Solved Problem Solved Problem#CPP#6959

Problem Statement - 01E-2019S

Find and write the output of the following C++ program code:

Note: Assume all required header files are already included in the program.

void Convert(float &X, int Y=2)
{
  X=X.Y;
  Y=X+Y;
  cout<<X<<"*"<<Y<<endl;
}
void main()
{
  float M=15, N=5;
  Convert(M,N) ;
  Convert(N) ;
  Convert(M) ;
}

Solution