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
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
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
Biology, 03.08.2019 05:00
question
Mathematics, 03.08.2019 05:00
Questions on the website: 13722362