

Strings - Programming
Q1: Which of the following function is used to find the first occurrence of a given string in another string?A strchr()
B strrchr()
C strstr()
D strnset()
ANS:C - strstr() The function strstr() Finds the first occurrence of a substring in another string
Declaration: char *strstr(const char *s1, const char *s2);
Return Value:
Output: The substring is: iaAptitude
|


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.