79826576

Date: 2025-11-21 14:06:56
Score: 1.5
Natty:
Report link

byte - 1byte, short - 2byte, int - 4byte, long - 8byte, float - 4byte, double - 8byte, char - 2byte, boolean - decided by jvm.

Formula for calculating minimum and maximum value range

minimum value : -2^(n-1)

maximum value : -2^(n-1) - 1

n - number of bits

Ex. int - 4byte = 4*8bit = 32bit, n = 32

minimum value : -2^(32-1) = -2.14748365e9

maximum value : -2^(32-1) - 1 = 2.14748365e9

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jishnu Muraleedharan