4 ms·
Hi, great article. Regarding char, I'd remark that getchar() etc return int so it can return -1 for EOF or error. I'm pretty sure this implies int as a declar
by emmelaich 4y ago
Hi, great article. Regarding char, I'd remark that getchar() etc return int so it can return -1 for EOF or error.
I'm pretty sure this implies int as a declaration is always signed, but tbh I'm not completely sure!
- yakubin 4y agoint, as all other integer types except char, is indeed signed by default. Aside: signedness semantics of char is implementation-defined. However, the type char itself is always distinct from both signed char and unsigned char.