subject
Engineering, 19.12.2019 19:31 kassidyopry15

Let the function fun be defined as (10 pts)

fun(int *k)

{

*k +=4;

return 3 * (*k) - 1; }

suppose fun is used in the program as follows

void main( ){

int i = 10, j = 10, sum1, sum2;

sum1 = (i / 2) + fun ( & i );

sum2 = fun ( & j ) + ( j / 2); }

what are the values of sum1 and sum2

a. operands in the expressions are evaluated left to right?

b. operands in the expressions are evaluated right to left?

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 19:10
Aplate of dimensions 3 m x 3 m is placed 0.37 mm apart from a fixed plate. the plate requires a force of 2n to move at speed of 45 cm/s. evaluate the viscosity of the fluid in between the plates
Answers: 3
question
Engineering, 06.07.2019 03:20
Steam at a pressure of 100 kpa and a quality of 50% initially fills a rigid vessel having a volume of 0.5 m^3. the steam is then heated, causing the pressure in the vessel to rise to 150 kpa. determine: i. the mass of the steam in the vessel. ii. the temperature and quality of the steam after the heating process. ii the mass of the vapour, mg and liquid, m in the vessel after the heating process. if the steam in the vessel is now further heated, what would the pressure and temperature in the vessel be when all steam has turned into saturated vapour? b. sketch the processes in part (a) and part (b) on p-v and t-v diagrams, indicating clearly the temperatures, pressures and the paths. c. (0.59kg, 111.4°c, 73%, 0.4307kg, 0.1 593kg, 2.11 bar, 121.84°c)
Answers: 1
You know the right answer?
Let the function fun be defined as (10 pts)

fun(int *k)

{

*k +=4...
Questions
question
Mathematics, 23.08.2019 00:30
question
Social Studies, 23.08.2019 00:30
question
History, 23.08.2019 00:30
question
Mathematics, 23.08.2019 00:30
Questions on the website: 13722360