Write a function that returns an integer and accepts pointer


Problem: String Length

Write a function that returns an integer and accepts a pointer to a C-string as an argu- ment. 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 function's return value.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a function that returns an integer and accepts pointer
Reference No:- TGS03232647

Expected delivery within 24 Hours