Choose the correct formula

Report a typo

Choose the correct formula for calculating the upper (max) possible value of an int variable.

a) 2^(n−1) − 1, where n is the number of bytes
b) 2^(n−1) + 1, where n is the number of bytes
c) 2^n + 1, where n is the number of bytes
d) 2^(n−1) − 1, where n is the number of bits
e) 2^(n−1) + 1, where n is the number of bits
f) 2^n + 1, where n is the number of bits
Select one option from the list
___

Create a free account to access the full topic