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 does the file stdio.h contain?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain what is a 'locale'?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is the difference between struct and union in C?
What is data structure in c and its types?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
How can I call a function with an argument list built up at run time?
Describe static function with its usage?
main() { printf("hello"); fork(); }
How do you sort filenames in a directory?
What is difference between constant pointer and constant variable?
Explain what is wrong with this program statement? Void = 10;
What are global variables?
What are the different data types in C?