Question: This must be written in C Programming, please! Thank you! Write code to define a function as follows: 1. function is named counting 2. counting
This must be written in C Programming, please! Thank you!
Write code to define a function as follows:
1. function is named counting 2. counting takes a pointer to a character, named y, and returns an integer named x based on the following: 3. if the pointer y, is pointing to a terminator character, return x, otherwise, 4. test if y is pointing to any of these characters: !@#$%^& If so then increment x and y 5. if the test is step 4 is not true, test if y is pointing to any digits (0 to 9), if so, increment x and y 6. if the test if step 6 is not true, then increment y.
7. the function should return x once y points to the end of the string.
Do not write any other code or comments. This will cause loss of points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
