![subject](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:10, AleciaCassidy
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
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 in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.07.2019 13:20
![Konu](/tpl/images/cats/istoriya.png)
History, 05.07.2019 13:20
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/health.png)
Health, 05.07.2019 13:20
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.07.2019 13:20
![Konu](/tpl/images/cats/health.png)