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 the difference between union and structure in c?
What is the difference between class and object in c?
What is the difference between c &c++?
i got 75% in all semester am i eligible for your company
What is void main () in c?
What are the functions to open and close file in c language?
Are comments included during the compilation stage and placed in the EXE file as well?
largest Of three Number using without if condition?
Explain the difference between structs and unions in c?
What is use of pointer?
What is the significance of an algorithm to C programming?
What is "Hungarian Notation"?
Why functions are used in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How can I automatically locate a programs configuration files in the same directory as the executable?