Answer Posted / vignesh1988i
first write the given number in it's binary format.
am considering only 8 bit at a time ,
5- 0000 0101
step 1: convert this binary format to one's compliment (ie)
change 0 to 1 and 1 to 0.
1111 1010
step 2: add 1 to the above binary format.
1111 1010
1
-----------
1111 1011
so this binary format will get stored in memory and the sign
bit will be set to 1.
always the negative number will be stored only in 2's
compliment..........
thank u
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
What is memory leak in c?
What is the general form of function in c?
Explain what is the difference between null and nul?
Explain how can I write functions that take a variable number of arguments?
Can you assign a different address to an array tag?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Explain how can you determine the size of an allocated portion of memory?
Which function in C can be used to append a string to another string?
What is the c language function prototype?
What are global variables and explain how do you declare them?
Why c language?
What are structure members?
How can I find the modification date of a file?
What does %2f mean in c?
How can I recover the file name given an open stream or file descriptor?