What function is used to search for a substring within a string in C?

What function is used to search for a substring within a string in C?
A . strpos()
B . strstr()
C . strfind()
D . strchr()

Answer: B

Explanation:

The strstr() function is used to search for a substring within a string in C.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments