I understand by mean of int size is 4-byte -> that means -2^31 to 2^31 -1 means value rang of -2147483648 to 2147483648 but not understand that is 2^7 -1 = 127
127 means is that 127 no. of bits which form numbers?
Don't understand the -2^31 to 2^3 -1
@abhisekmaiti19 for example one byte means 8 bit of binary data i.e. max value that can be stored in 8bit data is 11111111(8 bits) and the minimum which can be stored is 00000000 but MSB is always used for Sign of the data that’s why we only have 11111111(-127) for minimum value and 01111111(127) for maximum value. By all this what I meant is Datasize means how much binary can you store and more no. of binary means more Range.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.