
Write a recursive function that returns the sum of the decimal digits of n, with the sign dropped so a negative n sums the digits of its magnitude.
digit_sum(7)7digit_sum(1234)10digit_sum(0)0digit_sum(-42)6digit_sum(INT_MIN)47digit_sum.c
Run the tests to grade your code
Write a recursive function that returns the sum of the decimal digits of n, with the sign dropped so a negative n sums the digits of its magnitude.
digit_sum(7)7digit_sum(1234)10digit_sum(0)0digit_sum(-42)6digit_sum(INT_MIN)47digit_sum.c
Run the tests to grade your code
Memory will appear here