Question
a.
strchr()
b.
strrchr()
c.
strstr()
d.
strnset()
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following function is used to find the first occurrence of a given string in another string?
Similar Questions
Discover Related MCQs
Q. Which of the following function is more appropriate for reading in a multi-word string?
View solution
Q. Strcat function adds null character
View solution
Q. The return-type used in String operations are
View solution
Q. String operation such as strcat(s, t), strcmp(s, t), strcpy(s, t) and strlen(s) heavily rely upon.
View solution
Q. Which pre-defined function returns a pointer to the last occurence of a character in a string?
View solution
Q. Which of the following function compares 2 strings with case-insensitively?
View solution
Q. String concatenation means -
View solution
Q. What is the return value of the following statement if it is placed in C program?
strcmp("ABC", "ABC");
View solution
Q. What is the following code segment doing?
void fn( ){
char c;
cin.get(c);
if (c != ā\nā) {
fn( );
cout.put(c);
}
}
View solution
Q. Pattern matching refers to string____________.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!