Question: Write a function CountDigit() which receives a char array of size 20 from main(). This function counts the number of digits in the char array,
Write a function CountDigit() which receives a char array of size 20 from main(). This function counts the number of digits in the char array, and returns the count (of type int) to main().

Question 4 Write a function CountDigit() which receives a char array of size 20 from main(). This function counts the number of digits in the char array, and returns the count (of type int) to main(). Output Example Enter 20 character: e 3 gnj t 5 a lc mw 9 d 6 s a 0 g p Number of digits: 5 Rubrics 1 point(s) - Correct implementation of scanf. 3 point(s) - Correct implementation of function. 2 point(s) - Correct implementation of if. 1 point(s) - Correct implementation of array. 1 point(s) - Correct implementation of loop. 1 point(s) - Correct output. 1 point(s) - No syntax errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
