GATE 2017 [Set-1]
October 16, 2024Problem-Solving
October 17, 2024C-Programming
Question 2 |
Which of the following standard C library functions is best used to find the last occurrence of a character in a string ?
strnstr() | |
strrchr() | |
strstr() | |
None of these is useful. Its better to use strcmp() |
Question 2 Explanation:
Strrchr() is best used to find the last occurence of a character in a string.
Correct Answer: B
Question 2 Explanation:
Strrchr() is best used to find the last occurence of a character in a string.