strchr() function in C++ and its applications
In C++, strchr() is a predefined function used for finding the occurrence of a character in a string. It is present in cstring header file. Syntax: // Returns pointer to the first occurrence// of c in str[]char *strchr(const char *str, int c) Note that c is passed as its int promotion, but it is int