Question: Consider the following program: 1. #include 2. #include 3. 4. using namespace std: 5. 6. int f(int x, int & y) 7. { 8. x

Consider the following program: 1. #include 2. #include 3. 4. using namespace std: 5. 6. int f(int x, int & y) 7. { 8. x = x + y: 9. y = x + 2: 10. 11. return y + 5: 12. } 13. 14. int main() 15. { 16. int a = 1: 17. int b = 5: 18. int c = 30: 19. 20. c = f(a, b): 21. cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
