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 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
question
Engineering, 04.07.2019 18:10
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
question
Engineering, 04.07.2019 19:10
The short distance from the objective lens to the object causes problems at high magnification. which of the following is the most serious? a. cleaning the object surface b. positioning the object c. reflection from the object surface. d. illumination of the object
Answers: 1
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
Mathematics, 06.10.2019 17:00
question
Mathematics, 06.10.2019 17:00
question
Mathematics, 06.10.2019 17:00
Questions on the website: 13722367