C++ Language

Use of strrchr function in C/C++

The strrchr function finds the last occurrence of c (converted to a char) in the string pointed to by s. The terminating null character is also considered to be part of the string and it can be found if searching for ‘\0’.  The strrchr function defines in string.h header file and takes two arguments. Syntax

Use of strrchr function in C/C++ Read More »