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 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
Get step-by-step solutions from verified subject matter experts
