Write a function named digitCount which takes an integer number and an integer pointer digitNum. In the function, write the code to find how many digits does the number have and store the result in the address of digitNum parameter. Function does not need to return anything.

Main function is already written for you. In main function, the number which its digit count will be calculated is read from the user and the digitCount function is called without any parameters. You should only write the function and the parameters to be sent to the function.

NOTES:
Examples:
INPUT OUTPUT
3 1
354 3
26 2
567303 6


Important issues about all exams/projects/quizzes: