Question: in C please thanks! Write a function countDigit() which receives a char array of size 20 from main(. This function counts the number of digits
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 maino Output Example Enter 20 character: e 3gnjt salcm w 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 imple tation 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
