Vidyalelo
C Programming · Q120

Arrays and Strings

Programming · C Programming · question 120

Q120

Which code from the given option return pointer to last occurrence of c in ch or NULL if not present?

A.
char *strchr(ch, c)
B.
char *strrchr(ch, c)
Answer
C.
char *strncat(ch, c)
D.
char *strcat(ch, c)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board