Name: Anonymous 2010-09-02 0:50
should i read k&r
'\n' is a char, which in C is just an integer-type, and therefore yields an integer-value when being evaluated.'\n' is "on the other hand a string constant that happens to contain only one character." is just wrong. the only string-constant that only contains one charactar in C is "", which contains '\0' as its only element of type char.