Challenge: Calculate the Sum and Absolute Difference

Test your knowledge by solving a slightly more difficult challenge in this lesson.

Problem statement

Your task is to write a function sum_difference. In the function parameter, you will pass the two pointers of type int, and the function will return nothing in the output.

Get hands-on with 1400+ tech skills courses.