subject
Computers and Technology, 11.02.2021 21:20 Ddom

The following c++ 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 = 10;
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;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:00
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
question
Computers and Technology, 24.06.2019 23:30
Which example can be considered master data in an organization? a. holiday list b. dress code c. employee information d. recreational activities
Answers: 1
question
Computers and Technology, 25.06.2019 04:40
Ineed ! i need a computer whiz to me complete my study guide on computers, it's 50 questions. if anyone can me i'll be greatly appreciated.
Answers: 1
question
Computers and Technology, 25.06.2019 16:30
Need five questions ! question 1 excel is a tool used to a create a spreadsheet b design a brochure c make a presentation d write a letter question 2 a cell on an excel spreadsheet refers to a a type of document view b a page of the workbook c the rectangular box where a column and row intersect d the data in a worksheet question 3 tanya is entering the amount of money she has earned from babysitting onto an excel spreadsheet, but the autocomplete feature is not working. why? a autocomplete must be turned on before every entry. b autocomplete only works with professional spreadsheets. c autocomplete does not recognize types of currency. d autocomplete only works when the first character is text. question 4 which tab has formatting features to change the font style, color, size, and alignment? a file b home c insert d view question 5 brad uses excel to create a weekly schedule. he wants to keep using the same spreadsheet every year. one of his rows is titled "baseball," but the season has ended until next year. what is the most efficient way to modify the spreadsheet, so brad does not see baseball on his schedule but can easily get it back when the season starts again? a add a new comment with the start date of the next season b hide the row and unhide it when the new season begins c highlight the row in a different color to show the season has ended d start a new spreadsheet
Answers: 1
You know the right answer?
The following c++ program asks the user to enter two numbers. What is the output of the program if t...
Questions
question
Social Studies, 23.09.2019 09:50
Questions on the website: 13722361