You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have to 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.
Input Format
The input will contain two integers, a and b, separated by a newline.
Output Format
You have to print the updated value of a and b, on two different lines.
Note: Input/ouput will be automatically handled. You only have to complete the function described in the 'task' section.