You are viewing a single thread.
View all comments View context
19 points

Only to 2^54. The amount of integers representable by a long is more. But it can and does represent every int value correctly

permalink
report
parent
reply
-1 points

*long long, if we’re gonna be taking about C types. A long is commonly limited to 32 bits.

permalink
report
parent
reply
15 points

C is irrelevant because this post is about Java and in Java long is 64 bits.

permalink
report
parent
reply
2 points
*

you should never be using these types in c anyway, (u?)int(8/16/32/64)_t are way more sane

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments