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 a built-in function in C?
Explain About fork()?
Is array name a pointer?
Explain two-dimensional array.
Explain which function in c can be used to append a string to another string?
What does a function declared as pascal do differently?
Why is c platform dependent?
How do I read the arrow keys? What about function keys?
what is a constant pointer in C
What are the types of macro formats?
Is c# a good language?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is the description for syntax errors?
Wt are the Buses in C Language
What are the back slash character constants or escape sequence charactersavailable in c?