Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The type of each element of a string literal.
  • Used for character data from a limited character set (where signedness has little meaning) as opposed to integer data.

int

  • Used for data that could can be either EOF (a negative value) or character data interpreted as unsigned char and then converted to int. As a result, returned by fgetc(), getc(), getchar(), and ungetc(). Also, accepted by the character handling functions from <ctype.h>, because they might be passed the result of fgetc(), etc.
  • The type of a character constant. Its value is that of a plain char converted to int.

...