If function t is called what is printed void r(int x ,int y, int &z)
{
cout <<"r:x="<<x<<"y=",,y
<<"z=",,z,,endl;
x=x+1;
z=y+x;
}
void t()
{
int a,b,x;
a=20;
b=25;
x=250;
r(a,b,x);
r(x,a,b);
cout<<"t:a"<<a<<"b="<<b
<<"x="<<x<<endl;
}
This question is related to Wipro Interview
-
Interview Candidate
- Jul 7th, 2005
- 1
- 2603
Showing Answers 1 - 1 of 1 Answers
Related Answered Questions
Related Open Questions
If function t is called what is printed void r(int x ,int y, int &z) { cout <<"r:x="<<x<<"y=",,y <<"z=",,z,,endl; x=x+1; z=y+x; } void t() { int a,b,x; a=20; b=25; x=250; r(a,b,x); r(x,a,b); cout<<"t:a"<<a<<"b="<<b <<"x="<<x<<endl; }
Related Answered Questions
Related Open Questions