414 views
1 votes
1 votes

Suppose we have a 32-bit memory and we have to represent

unsigned int a = -5

What will the memory representation look like?

000000…….1011

or 

111…..1011

1 Answer

Best answer
1 votes
1 votes

it will be like 1111...1011

you can check it yourself, just run this-

unsigned int i = -5;

printf(“%x”,i);

or

https://onlinegdb.com/XC_KvJWdjG

selected by

Related questions

2 votes
2 votes
2 answers
2
srestha asked May 13, 2019
909 views
Can someone explain the output of this code? and what (char*) is doing actually?#include<stdio.h struct Ournode{ char x, y, z; }; int main() { struct Ournode p={'1', '0',...
0 votes
0 votes
1 answer
3
Ashish Roy 1 asked Apr 11, 2019
579 views
X=2;Y=++x * ++x * ++x ;Printf("%d",Y);In the above question, we have to use the final value of x or it will be evaluated seperately and then multiplied.Ex: Y= 3*4*5; or Y...