30.2k views
4 votes
This function searches for the first occurence of a string inside another string.

Select one:

a. strchr()

b. strlen()

c. strcmp()

d. strcasecmp()

User Theist
by
6.7k points

1 Answer

6 votes

Answer:

strchr()

Step-by-step explanation:

Among the following options strchr() is the sring function that used to search for the first occurence of a string inside another string.

strlen() function is used to find the length of the string.

strcmp() is used to compare two strings and returns either 0 or 1.

strcasecomp() this function is used to compare the case of characters of two strings.

User Yesse
by
6.3k points