adplus-dvertising
frame-decoration

Question

Which of the following function is used to find the first occurrence of a given string in another string?

a.

strchr()

b.

strrchr()

c.

strstr()

d.

strnset()

Answer: (c).strstr()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following function is used to find the first occurrence of a given string in another string?