158k views
2 votes
Write the function mystrchr(). the function has two parameters: a const char * s pointing to the first character in a c-style string, and a char

c. return a pointer to the first appearance of c appearing inside s and nullptr (0) if c does not appear inside s.

1 Answer

4 votes
c. return a pointer to the first appearance of c appearing inside s and nullptr (0) if c does not appear inside s.
User Kashan
by
8.1k points