Top
/
Algorithms on strings
/
Answer-31-1
Answer to Question 31-1
strlen("frog" + 1) = 3. Pointer "frog"+1 points to the 'r' in "frog". Passing that pointer to strlen gives a length of 3; it is like strlen("rog").