...
GATE 2017 [Set-1]
October 16, 2024
Problem-Solving
October 17, 2024
GATE 2017 [Set-1]
October 16, 2024
Problem-Solving
October 17, 2024

C-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 ?
A
strnstr()
B
strrchr()
C
strstr()
D
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.

Leave a Reply

Your email address will not be published. Required fields are marked *