ExamCompetition Forum Question Papers Ask A Question Mock Test Learn & Earn Sign Up Login Menu



19 vote

The library function used to find the last occurrence of a character in a string is

Asked on by | Votes 19 | Views: 558 | Tags: computer science     | c programming     | arrays and strings     | Add Bounty

The library function used to find the last occurrence of a character in a string is

A).  laststr()

B).  strstr()

C).  strnstr()

D).  strrchr()

E).  None of these


Share on Facebook      Share on Whatsapp       Share on Twitter




1 answers

15 vote
Answered by on | Votes 15 |

 strrchr()



Declaration: char *strrchr(const char *s, int c);

It scans a string s in the reverse direction, looking for a specific character c.

Join Telegram Group




Answer This Question

Name:
Email:
Answer :
Sum of (1+1)
Submit: