Question: Now, write your own mystrlen function so the following program works. First, think through hoWstrlen) could work. Remember that a C string is terminated with

 Now, write your own mystrlen function so the following program works.

Now, write your own mystrlen function so the following program works. First, think through hoWstrlen) could work. Remember that a C string is terminated with the special character 10 (ASCII NUL, that's a backslash followed by a zero] which is not included in the length. Your function should have the same type signature as strlen C++11 Code 1 #include 2 #include iostream 4 int main() 5 char str[100]; 6 std: :cin >> str; 7 std::cout

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!