Question: 4. Complete the function void update (int *a,int *b), which reads two integers as argument, and sets a with the sum of them, and b

 4. Complete the function void update (int *a,int *b), which reads

4. Complete the function void update (int *a,int *b), which reads two integers as argument, and sets a with the sum of them, and b with the absolute difference of them. (5 points) Sample input: 4,5 Sample output: 9,1 #include stdio.h> void update(int *a,int *b) II Complete this function int maino int a, b int *pa &a, *pb -&b; scanf("%d %d", &a, &b); update(pa, pb); printf("%din%d", a, b); return 0

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!