Implement a function that returns an integer that is one gre
Implement a function that returns an integer that is one greater than the integer passed into it. The function has the following signature.
Write test code with assertions to verify that your function is correctly implemented.
For example, the following tests that the function works correctly for several different values.
You need to include the cassert header in your code in order to use the assert function.
Solution
function definition
int addone(int *i)
{
return ++(*i);
} /*return value plus one*/
main function
int k=0;
addone(&k); /*k is incremented by 1 */
