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 is the purpose of type declarations?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
difference between Low, Middle, High Level languages in c ?
How a string is stored in c?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
What is the purpose of sprintf() function?
What is meant by gets in c?
How many types of errors are there in c language? Explain
Explain what is the purpose of "extern" keyword in a function declaration?
What is a lvalue
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Did c have any year 2000 problems?
Can a pointer be volatile in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What does stand for?