Question: Answer for this questions with a explanation ? What are the values of sum1 and sum2 if the operands in the expressions are evaluated right

 Answer for this questions with a explanation ? What are the Answer for this questions with a explanation ?

What are the values of sum1 and sum2 if the operands in the expressions are evaluated right to left? Answer without explanation will not get an point! int fun (int *k) {*k + = 2; return 3 * (*k);} void main(void){int a= 6, b = 12, sum 1, sum 2; sum 1 = (a/2) + fun(&a) sum2 = fun (&b) + (b/2);}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!