C Programming String Multiple choice question

Exercise :: String - General Questions

This section contains a lot of Question with answer and explanation.

3) Which of the following function is used to find the first occurrence of a given string in another string?
A. strchr()
B. strrchr()
C. strnset()
D. strstr()




( D )

Explanation :

The function strstr() Finds the first occurrence of a substring in another string