I am debugging a program using GDB.
unsigned int example = ~0;
gives me:
(gdb) x/4bt example 0xffd99788: 10101000 10010111 11011001 11111111
why is it not all 1? I defined it as ~ 0 ... then the following line of code:
example>>=(31);
and GDB gives me this when I try to learn the memory in bits:
(gdb) x/4bt example 0xffffffff: Cannot access memory at address 0xffffffff
what's happening???
source share