subject
Engineering, 27.11.2019 01:31 jennyrr9021

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: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, qwertylol12345
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
image
Engineering, 04.07.2019 18:10, lillygrl100
For the closed feedwater heater below, feedwater enters state 3 at a pressure of 2000 psia and temperature of 420 °f at a rate of ix10 ibhr. the feedwat extracted steam enters state 1 at a pressure of 1000 psia and enthalpy of 1500 btu/lbm. the extracted er leaves at an enthalpy of 528.7 btu/lbm steam leaves as a saturated liquid. (16) a) determine the mass flow rate of the extraction steam used to heat the feedwater (10) b) determine the terminal temperature difference of the closed feedwater heater
Answers: 3
image
Engineering, 04.07.2019 18:20, rocio5649
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa. s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
image
Engineering, 04.07.2019 19:10, jimena15
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
You know the right answer?
Let the function fun be defined as (10 pts)
fun(int *k)
{
*k +=4;
return 3...

Questions in other subjects:

Konu
Biology, 24.08.2019 01:30
Konu
Mathematics, 24.08.2019 01:30
Konu
Mathematics, 24.08.2019 01:30
Konu
Mathematics, 24.08.2019 01:30