Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started