You are viewing a single comment's thread. Return to all comments →
I used the abs() function within cstdlib library
#include <stdio.h> #include<cstdlib> void update(int *a,int *b) { int sum = *a + *b; int diff = abs(*a-*b); *a = sum; *b = diff; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pointer
You are viewing a single comment's thread. Return to all comments →