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 |
how many keywords do C compile?
7 Answers Microsoft, Practical Viva Questions,
What is calloc in c?
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));
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
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()?
How do I create a directory? How do I remove a directory (and its contents)?
where do we use volatile keyword?
Why do we use int main?
What is a pointer in c plus plus?
What is p in text message?
write a program to find out number of on bits in a number?