Answer:
Monday Video: 5.4.20 Section 18.5
Work due: 18.5 Worksheet
CW
Tuesday Video: 5.5.20 Section 18.6
Work due: 18.6 Worksheet
HW
Wednesday Video: 5.6.20 Section 18.7
Work due: 18.7 Classwork
CW
Thursday Video: 5.7.20 Section 18.7
Work due: 18.7 Homework
HW
Friday Video: 5.8.20 Section 18.5-18.7
Work due: Textbook page 615 #5-19 (not #13)
HWaccuracy
Explanation:
Answer:
B. 1 6 3
Explanation:
Given function definition for calc:
void calc (int a, int& b)
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
Function invocation:
x = 1;
y = 2;
z = 3;
calc(x, y);
cout << x << " " << y << " " << z << endl;
- Since x is passed by value, its value remains 1.
- y is passed by reference to the function calc(x,y);
Tracing the function execution:
c=3
a=3
b=c+a = 6;
But b actually corresponds to y. So y=6 after function call.
- Since z is not involved in function call, its value remain 3.
So output: 1 6 3
Answer:
Answer is Mobile commerce
Since no answer choices, have to deduce it is Private Networks