adplus-dvertising
frame-decoration

Question

Which pre-defined function returns a pointer to the last occurence of a character in a string?

a.

strchr(s, c);

b.

strrchr(s, c);

c.

strlchr(s, c);

d.

strfchr(s, c);

Answer: (b).strrchr(s, c);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which pre-defined function returns a pointer to the last occurence of a character in a string?