Question: 2. Assume that we use an 8-bit bit vector to represent a signed or unsigned integer. 1) We declare unsigned int a= 63, and

2. Assume that we use an 8-bit bit vector to represent a signed or unsigned integer. 1) We declare unsigned int a= 63, and b= 25.. What is the result of a & b in binary representation? 2) We declare unsigned int a= 00111111, and b= 00011001. What is the result of a | b in binary representation? 3) We declare unsigned int c=132.. What is the corresponding signed integer that has the same bit vector representation as the unsigned integer c=132,? 4) We declare unsigned int c=132, and signed int d=-1,. Let int e=(c>d). What is the value of e? 5) Given the following code int main() { } int x=-31; x=x>>2; return 0; What is the value of x?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
