ExplanationIn the above program two strings and character pointer are declared. The string^ are
entered. Both the strings are used as arguments with function s trpbrk(). This function finds first
occurrence of second string in the first string and returns that address which is assigned to character
pointer *ptr. The pointer ptr displays the rest string.
Here, the first string is "INDIAISGREAT" and second string is "G." The ' G'occurs at the beginning
of the third word.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.