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, 23.06.2019 06:10
The head restraint should be adjusted so that it reaches a.the top of your ears b.the base of your skull c.the top of the head
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
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
Mathematics, 28.05.2021 22:40
question
Mathematics, 28.05.2021 22:40
question
English, 28.05.2021 22:40
question
Mathematics, 28.05.2021 22:40
question
Mathematics, 28.05.2021 22:40
question
Mathematics, 28.05.2021 22:40
question
French, 28.05.2021 22:40
Questions on the website: 13722361