Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions