Question: in C + + String Length Write a function that returns an integer and accepts a pointer to a C - string as an argument.
in C String Length
Write a function that returns an integer and accepts a pointer to a Cstring 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
