Sir, i have a doubt in concept

sir, it my code ->https://ide.codingblocks.com/s/459336. how can i search that any string is present in another string.

hello @chandreshmaurya

u can use c++ find function to chek whether one string is present inside other or not.

sir, i did u told me in my code -> https://ide.codingblocks.com/s/459346. But, i am getting wrong result. can you please find out that

check now-<

sir, is it mean that if any string is found in another string then it return any value instead of -1 ?

The function returns the index of the first occurrence of sub-string, if the sub-string is not found it returns -1

oohkay sir, i got. thank you sir

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.