Question: below are the options for this question Question 6 (3 points) #include 10. int afunc (int *a, int *b) { 11 *a++; 12 *b++; 13

 below are the options for this question Question 6 (3 points)
below are the options for this question
#include 10. int afunc (int *a, int *b) { 11 *a++; 12

Question 6 (3 points) #include 10. int afunc (int *a, int *b) { 11 *a++; 12 *b++; 13 return (a b); } 14 15 - int main (void) { 16 int x = 9, y = 10; 17 int r = afunc (&x, &y); 18 printf ("%d %d", x, y); 19 return 0; } 20 Select the most appropriate choice that correctly explains output of the above code. Select the most appropriate choice that correctly explains output of the above code. Since the function prototype forces arguments to be passed by value, it will display unchanged values of x and y. Though the function prototype forces arguments to be passed by reference, the call of the function is incorrectly passing values of variables and therefore it will display unchanged values of x and y Both the function prototype and the call are correctly enforcing pass by reference and therefore, it will display x and y values updated i.e. increased by 1. Though function prototype and the call are correctly enforcing call by reference: however, in the body of the function indirection operator was not correctly used to access value of the variables and therefore, it will display unchanged values of x and y. None of these

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!