hi, i was implementing strstr() to see how it works.
Code:#include<iostream> using namespace std; int main() { char str[] = "this is a test"; char*s; s=strstr(str,"test"); cout<<s<<endl; }
i have two question .
question 1 > what is the full form of strstr() ?
for example, if i write strcpy ---> it means string copy.
similarly what is the meaning of strstr() ?
the syntaxex dont give the full form of this function. can you tell what is the literal meaning?
question 2.
without assigning a memory (by new keyword ) the code is running!!
look, i have simply tested with only char *s; but no memory allocated.