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

Another question on Engineering

question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15Β°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
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
You know the right answer?
Let the function fun be defined as (10 pts)
fun(int *k)
{
*k +=4;
return 3...
Questions
question
Mathematics, 10.09.2019 03:30
question
Mathematics, 10.09.2019 03:30
question
Computers and Technology, 10.09.2019 03:30
question
Mathematics, 10.09.2019 03:30
question
Mathematics, 10.09.2019 03:30
Questions on the website: 13722362