News for hackers. Stuff that matters.
Re:Reading Log for Effective C: An Introduction to Professio... by lionkor on Thursday June 22, 2023 @04:34AM (#36429450)
> it is not possible to understand the C language by just writing simple test programs to examine the behavior.

This is so well put, thank you.

> Integer types are unsigned by default, except for char.

unsigned by default? I'm pretty sure `int`, `long`, `short` and `long long` are signed by default.

Re:Reading Log for Effective C: An Introduction to Professio... by gpderetta on Thursday June 22, 2023 @05:29AM (#36429769)
and whether plain char is signed or unsigned is unspecified.
Re:Reading Log for Effective C: An Introduction to Professio... by pajko on Thursday June 22, 2023 @10:50AM (#36433028)
Actually it can be signed, unsigned or have a completely separate type which is neither signed char nor unsigned char.
Re:Reading Log for Effective C: An Introduction to Professio... by gpderetta on Thursday June 22, 2023 @11:14AM (#36433409)
Well, I meant that char can either be a signed or unsigned integer type. It is always a distinct type form either signed char or unsigned char.