. (20 Pts) An integer is 32 bits in length, what are the largest positive intege
ID: 3348805 • Letter: #
Question
. (20 Pts) An integer is 32 bits in length, what are the largest positive integer and the smallest negative integer that can be represented by a signed 32-bit integer in decimal (base 10)? a. b. Write down the value of x obtained in below C program (all numbers in decimal): "long int" type 32 bit signed integer on this processor long int a: long int b; long int x; a 90; c. d. e. Would there be a carry when x is found? Why or why not? Would there be an overflow? Why or why not? What would be the value of x if addition is done under saturation arithmetic?Explanation / Answer
a
The limits of 32 bit signed integer are ?2,147,483,648 to 2,147,483,647 . as one bit is used for sign representation only 31 bits are significant.
b
ans is -130
c
no carry as it is within limits.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.