1.

Which of the given function is used to return a pointer to the located character?(a) strrchr()(b) strxfrm()(c) memchar()(d) strchar()I had been asked this question by my school principal while I was bunking the class.I need to ask this question from String Operations in division String Operations in C of C

Answer»

Correct ANSWER is (d) strchar()

The BEST explanation: The strchr() FUNCTION is used to return a pointer to the LOCATED CHARACTER if character does not occur then a null pointer is returned.



Discussion

No Comment Found

Related InterviewSolutions