Question: Write a function definition(implementation) called countNewLines() that accepts 1 input argument: an input string (char array) The function should return an integer: the number of

 Write a function definition(implementation) called countNewLines() that accepts 1 input argument:

Write a function definition(implementation) called countNewLines() that accepts 1 input argument: an input string (char array) The function should return an integer: the number of new line characters (' ') found in the string. For example, if the string is "Ab!cde 123yAB123yC .??583*?1AYC *\t9y y!?** a." The function would return 5. If no new line characters are found, return 0. The declaration is given here as int countNewLines(char* inputString)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!