🎴 Flashcard Mode
C++ Programming
Card1 / 25
Mastered0
Review0
QuestionClick to flip
Which of the following string functions in C++ returns a pointer to the first occurrence of character in string and returns NULL, if the specified character is not found in the string?
AnswerClick to flip back
A
strchr()
💡 Explanation:
This function determines the first occurrence of the character in the given string and if no match is found, then a NULL pointer is returned.