Why does C’s printf format string have both %c and %s?
Probably to distinguish between null terminated string and a character. If they just had %s, then every single character must also be null terminated. char c=”a”; In the above case, c must be null terminated. This is my assumption though 🙂