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