signed: its value can be less than zero unsigned: its value cannot be less than zero example: 16 bit signed: -32768 .. 32767 16 bit unsigned: 0 .. 65535
In unsigned notation, 0xFFFF (65,535 decimal) is the largest value that will fit in a 16-bit register. In signed notation, 0x7FFF (32,767 decimal) is the largest because the most-significant bit denotes the sign.
hexadecimal can express 16 bit binary in 4 place form, not 16.
16 is the 4th power of 2. So a hexadecimal number is converted to binary by replacing each hex digit by the 4-bit binary number having the same value. Conversely, in converting binary to hexadecimal, we group every 4 bits starting at the decimal (binary?) point and replace it with the equivalent hex digit. For example, the hexadecimal number 3F9 in binary is 1111111001, because 3 in binary is 11, F (decimal 15) is 1111, and 9 is 1001.
Consult your limits.h and math.h. For char it will be -128..127 or 0.255 (signed and unsigned).
0..65535 Note: check me using your calc.exe: 65535 = 2^16-1
216-1 or (2^16)-1
signed: its value can be less than zero unsigned: its value cannot be less than zero example: 16 bit signed: -32768 .. 32767 16 bit unsigned: 0 .. 65535
The value range. Example for 16-bit integers: signed: -32768..32767 unsigned: 0..65535
A 5-bit binary counter, interpreted as an unsigned integer, has a range of 0 to 31. Interpreted as a two's complement signed integer, it has a range of -16 to +15.
In a 16 bit number there must be from zero to 16 '1'. If a bit does not have value zero then it has a value of 1. Nothing else can be represented by a bit. Example 0000 is a 4 bit number. Each bit is a zero. 1010 is also a four bit number. 0000111100001111 is a 16 bit number. 1100110011000001 is also a 16 bit number.
16 bit
Actually, that answer is incorrect. Binary is used to hold information. However, without a context, the information can only be translated as a number. There are two types of binary integers (ironic, right?). The first type is called unsigned. The second type is called signed. If you have an unsigned binary integer, the number can only be positive. If you have a signed binary integer, the first number indicates the sign of the number (and ONLY the sign. A position cannot mean both a value AND positive or negative). A '0' in front means positive, and a '1' in front means negative. So, if the number in question was an unsigned integer, it would have a value of 1024 + 64 + 32 + 16 + 4 + 1 = 1141. If the number in question was a signed integer, it would have a value of (-1)*(64 + 32 + 16 + 4 + 1) = -117.
Hexadecimal is used whenever we want to notate a binary value because each hex digit maps directly with each 4 bit nybble (half a byte). A 64-bit binary value can therefore be reduced to a more concise 16-digit hex value.
Unsigned: 216-1. Signed: 215-1.
In unsigned notation, 0xFFFF (65,535 decimal) is the largest value that will fit in a 16-bit register. In signed notation, 0x7FFF (32,767 decimal) is the largest because the most-significant bit denotes the sign.
16 Mb in binary notation can be refered to as 16*1024 bits. A bit is represented with a lower case "b".