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: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-10-28 8:16

>>25
UINT_MAX = 2(CHAR_BIT * sizeof(int))

CHAR_BIT * sizeof(int) > 2(CHAR_BIT * sizeof(int))

q > 2q
lg(q) > q

Which is perfectly impossible.

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