1

I understand the differences between char and int and almost all types. I just don't understand why int c is used? Isn't this a different bit size than C? I just want to understand why they use int instead char for the parameter c. I appreciate the knowledge.

Here are the methods/functions I am talking about?

char *strchr(const char *str, int c);
char *strrchr(const char *str, int c);

I know there are more.

napkinsterror
  • 1,915
  • 4
  • 18
  • 27

0 Answers0