What is the output of the following programs: int func(int &x, int y = 10) { if (x % y == 0) return ++x; else return y--; } int main() { int p = 30, q = 33; q = func(p, q); cout


What is the output of the following programs:


int func(int &x, int y = 10)
{
if (x % y == 0)
return ++x;
else
return y--;
}
int main()
{
int p = 30, q = 33;
q = func(p, q);
cout < p="">< "="" "="">< "="" "="">< q=""><>
p = func (q);
cout < p="">< "="" "="">< "="" "="">< q=""><>
q = func (p);
cout < p="">< "="" "="">< "="" "="">< q=""><>
return 0;
}



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here