1.

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);I have been asked this question in examination.My question is from String Operations topic in section Input and Output in C of C

Answer»

The CORRECT CHOICE is (b) strrchr(s, c);

To EXPLAIN I WOULD say: NONE.



Discussion

No Comment Found

Related InterviewSolutions