Which of the following function is used to find the first occurrence of a given string in another string?
a. strnset()
b. strstr()
c. strrchr()
d. strchr()
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Correct option to the question ‘Which of the following function is used to find the first occurrence of a given string in another string’ is (b) strstr().