asked 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.
answered
User Kashan
by
8.1k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.