What is strstr(s1,s2) in c++ ?

What is strstr(s1,s2) in c++ ?

Can anyone explain withthe help of an answer

Refer Here

This function takes two strings s1 and s2 as an argument and finds the first occurrence of the sub-string s2 in the string s1. The process of matching does not include the terminating null-characters(‘\0’), but function stops there.

The concept is very simple
Firstly it is a pre-f=defined function in C++

strstr(s1,s2); //This simply means that this function returns a “pointer” to the first occurence of string s2 in that string.

Hope this statement made it clear for you. Happy coding !

I think this type of question can be easily googled. Did you try that?