Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C

Name: C 2013-10-27 3:30

Surprised that I've never needed it before but does C provide a portable way to obtain the number of bits in an integer?

Name: Anonymous 2013-10-27 19:42

>>1

#include <limits.h>
sizeof (int) * CHAR_BIT

ATTENTION: it can overflow

Name: Anonymous 2013-10-27 23:24

>>14
TOO BAD FOR YOU
In my system sizeof (int) = (size_t)-1

Name: Anonymous 2013-10-27 23:25

>>13
How can that possibly overflow?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List