Strings - General Questions :: Discussion


4.The library function used to find the last occurrence of a character in a string is?
A.strnstr()
B.laststr()
C.strrchr()
D.strstr()
Answer:  Option  C
Explanation:

Declarationchar *strrchr(const char *s, int c);

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

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers