subject
Engineering, 03.12.2019 20:31 erinolson07cats

Consider the following program: int f(int* k) { *k -= 2; return 2*(*k) + 1; } void main() { int i = 5, j = 5, sum1, sum2; sum1 = (i/2) + f(& i); sum2 = f(& j) + (j/2); } what is the value of sum1 and sum2 if operands are evaluated right to left? a. sum1 == 8, sum2 == 8 b. sum1 == 8, sum2 == 9 c,.sum1 == 9, sum2 == 8 d. sum1 == 9, sum2 == 9

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
You know the right answer?
Consider the following program: int f(int* k) { *k -= 2; return 2*(*k) + 1; } void main() { int i...
Questions
question
English, 04.07.2019 06:30
question
Social Studies, 04.07.2019 06:30
Questions on the website: 13722362