Suppose the function definition be:
int strlength (char str[]) {
int i;
for(i=1;str[i]!='\0';i++);
return i;
}
It should work only when passing the address of the first block of array i.e. '&str[0]' OR 'str' but it works even on passing a string constant let's say "AnswerPlease". Why?