Challenge: Calculate the Sum and Absolute Difference
Explore how to write a C++ function to sum values and compute their absolute difference using pointers. Understand manipulating values at memory addresses and gain hands-on practice with pointer tasks.
We'll cover the following...
We'll cover the following...
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.
Your function should:
Task 1: ...