Question: Hello! Can someone please tell me what is wrong with this C++ code? When I enter a string it doesnt output the correct amount of
Hello! Can someone please tell me what is wrong with this C++ code? When I enter a string it doesnt output the correct amount of characters in the string.
Assignment -
Write a function that returns an integer and accepts a pointer to a C-string as an
argument. The function should count the number of characters in the string and return that number. Demonstrate the function in a simple program that asks the user to input a string, passes it to the function, and then displays the functions return value.

proct 9BMy Mac Finished running project 9B: project 9B ii D project 98 Identity and Type project 9B #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
