why integer range between -327680to+32767
Answers were Sorted based on User's Feedback
Answer / jim
Question is in error! It should read -32768 to 32767.
An unsigned 16-bit value ranges from 0...65535.
In Hex 0...FFFF
A signed 16-bit value ranges from -32768 ... 32767
In hex 8000...7FFF
Just as 0 is 0, 1 is 1, 7FFF is 32767, FFFF is -1,
8000 is -32768.
So...
8000 FFFE FFFF 0 0001 0002 7FFF
-32768 -2 -1 0 1 2 32767
| Is This Answer Correct ? | 22 Yes | 3 No |
Answer / nilay
as interger requires 2 bytes means 16 bits i.e. 2 raised to
15 ( 1 bit for sign bit to indicate no. is +ve or -ve) is
32768 to 32767 .if sign bit is not included then it is 2
raised to 16 i.e. 65535.
| Is This Answer Correct ? | 17 Yes | 0 No |
C program to find all possible outcomes of a dice?
who is the father of c
How to implement call back functions ?
how to go with this?
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
How is = symbol different from == symbol in c programming?
How can I do serial ("comm") port I/O?
Explain argument and its types.
ratio,age,persentage
How does sizeof know array size?
Explain what is output redirection?
Why is not a pointer null after calling free?