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 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 19:10
What is creep? what is stress relaxation?
Answers: 1
question
Engineering, 04.07.2019 19:10
Abarometer contains mercury with a density of 13600 kg/m3. atmospheric conditions are 95.8 kpa and 20 °c at 20 °c, the vapor pressure of the mercury is 0.000173 kpa. the column of mercury will rise to a height of most nearly. select one: a)- 0.38 m b)- 0.82 m c)- 0.48 m d)- 0.72 m
Answers: 1
You know the right answer?
Let the function fun be defined as (10 pts)

fun(int *k)

{

*k +=4...
Questions
question
History, 06.12.2021 08:50
question
Mathematics, 06.12.2021 08:50
question
Spanish, 06.12.2021 08:50
question
Mathematics, 06.12.2021 08:50
question
Mathematics, 06.12.2021 08:50
question
Mathematics, 06.12.2021 08:50
Questions on the website: 13722363