Question 9 Given the following function definition: void calc (int a, int& b) init c. c = a + 2, a = a*3; b = c+a; What
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 9 Given the following function definition: void calc (int a, int& b) init c. c = a + 2, a = a*3; b = c+a; What
Question 9 Given the following function definition: void calc (int a, int& b) init c. c = a + 2, a = a*3; b = c+a; What is the output of the following code fragment that invokes calc? int x = 1; int y = 2; int z = 3; calc(x, y). cout << x <<" " << y <<" << z << endl; Selected Answer: Answers: B. A B. 163 123 163 363 C D. 1 14 9