News for hackers. Stuff that matters.
Re:So you think you know C? by sharkbot on Tuesday November 08, 2016 @03:41PM (#12903723)
> To be pedantic, a size of char is defined by CHAR_BIT in limits.h. As well as all of the min and max values and lengths in bits for integers.

To be even more pedantic: it's the number of bits in a char that is defined by CHAR_BIT. However, sizeof returns the number of chars needed to store a type, where sizeof(char) is defined to be 1.

Re:So you think you know C? by gens on Tuesday November 08, 2016 @04:03PM (#12903918)
Yes, was just about to correct myself, sizeof(char) is always 1.

Nevermind me.