why integer range between -327680to+32767

Answers were Sorted based on User's Feedback



why integer range between -327680to+32767..

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

why integer range between -327680to+32767..

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

Post New Answer

More C Interview Questions

how many keywords do C compile?

7 Answers   Microsoft, Practical Viva Questions,


What is calloc in c?

0 Answers  


Write one statement equalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));

6 Answers   TCS,


the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789

5 Answers  


write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)

7 Answers   Consultancy, DBU, FD, JK Associates, Kobe, Satyam,






What is the difference between getch() and getche()?

1 Answers   NSPL,


How do I create a directory? How do I remove a directory (and its contents)?

0 Answers  


where do we use volatile keyword?

1 Answers  


Why do we use int main?

0 Answers  


What is a pointer in c plus plus?

0 Answers  


What is p in text message?

0 Answers  


write a program to find out number of on bits in a number?

17 Answers   Huawei, Microsoft,


Categories