Problem

The following program asks the user to enter two numbers. What is the output of the progra...

The following program asks the user to enter two numbers. What is the output of the program if the user enters 12 and 14?

#include using namespace std;void func1(int &, int &);void func2(int &, int &, int &);void func3(int, int, int);int main ( ){ int x = 0, y = 0, z = 0; cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl; func1(x, y); cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl; func2(x, y, z); cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl; func3(x, y, z); cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl; return 0;} void func1(int &a, int &b){ cout ≪ "Enter two numbers: "; cin ≫ a ≫ b;} void func2(int &a, int &b, int &c){ b++; c−−; a = b + c;} void func3(int a, int b, int c){ a = b − c;}

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT