why integer range between -327680to+32767

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


Please Help Members By Posting Answers For Below Questions

What is a sequential access file?

740


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1831


What is return type in c?

751


What is methods in c?

739


Why do we use stdio h and conio h?

744






How do you determine whether to use a stream function or a low-level function?

770


Tell us something about keyword 'auto'.

750


Why is c called a structured programming language?

825


Explain how can you be sure that a program follows the ansi c standard?

959


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2822


What is the argument of a function in c?

677


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2860


Why is c still so popular?

705


What is array of structure in c?

690


How can you check to see whether a symbol is defined?

692