Question: Write a function can return the length of a string (10pt) Example: Input String: China The length of the string is 5. #include int length(char

 Write a function can return the length of a string (10pt)

Write a function can return the length of a string (10pt) Example: Input String: China The length of the string is 5. #include int length(char p) write your code here main0t int len; char str 20 printf"Input string:": scanf("%[^ ]%"c", str); len - length(str); printf("The length of string is %d. ", len); getchar): getchar0

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!