logoalt Hacker News

estimator7292yesterday at 5:45 PM2 repliesview on HN

On the one hand, in today's world asking how many bits is in an int is exactly as answerable as "how long is a piece of rope"

On the other, the right answer is 16 or 32. It's not the correct answer, strictly speaking, but it is the right one.


Replies

jandrewrogersyesterday at 6:21 PM

An 'int' is also 64 bits on some platforms.

fragmedeyesterday at 6:44 PM

It's the wrong question. How many bits is uint64 is a much better question, if we're at a place where that's relevant.