Is it possible to have a 128bit integer in Java or C++?
Of course you can represent them.
At least you can use a byte-array with 16 elements.
However, the question is if you just want to represent the value or actually do some calculations with it.
In Java you can use BigInteger
to represent (effectively) arbitrary sized integer values and do calculations as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With