
Write a function that returns how many decimal digits n is written with, counting 0 as one digit and never counting the minus sign.
digit_count(7)1digit_count(0)1digit_count(-42)2digit_count(1000000)7digit_count(INT_MIN)10digit_count.c
Run the tests to grade your code
Write a function that returns how many decimal digits n is written with, counting 0 as one digit and never counting the minus sign.
digit_count(7)1digit_count(0)1digit_count(-42)2digit_count(1000000)7digit_count(INT_MIN)10digit_count.c
Run the tests to grade your code
Memory will appear here