Return Value:
On success, strstr returns a pointer to the element in s1 where s2 begins (points to s2 in s1).
On error (if s2 does not occur in s1), strstr returns null.
It will return a pointer to the first occurrence of sub string thus will act as character array.
Arun said:
(Jun 20, 2018)
How could we solve the program without using strstr fuctions?
Rakhi Kirtankar said:
(Sep 6, 2018)
Strstr function finds one string in another string. And when it finds the second string it prints that substring along with the remaining character. And pointer is used for storing returned address
Post your comments here:
Name *:
Email : (optional)
» Your comments will be displayed only after manual approval.