Top
/
Algorithms on strings
/
Answer-32-1
Answer to Question 32-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").