int Length(char *s);

Can someone help me undrstand how to use this [int Length(char *s);] my teacher says This function returns the length of the null-terminted character string s but I don't know how to use it. I've tried many different ways.
if( Length("hello") == 5 ) cout << "yay";
What are you trying to achieve with it?
thanks, I figured it out. My teacher wanted us to make or own version of a string library function to find the length of a character string.
Last edited on
Topic archived. No new replies allowed.