Answer Posted / 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 |
Post New Answer View All Answers
What happens if you free a pointer twice?
What oops means?
Do you know null pointer?
List some applications of c programming language?
Should I learn data structures in c or python?
I came across some code that puts a (void) cast before each call to printf. Why?
What is the maximum length of an identifier?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is a pointer and how it is initialized?
How many types of arrays are there in c?
C program to find all possible outcomes of a dice?
Explain is it valid to address one element beyond the end of an array?
What is the modulus operator?
In which header file is the null macro defined?
Why do we use main function?