cpp abs for short code example Example: abs in cpp int a =4; int b =5; int ans = abs(a-b); //ALWAYS RETURN POSITIVE NUMBER.