This is a very basic question. Consider the following code snippet.
int a = 5; int b = 1;
How the value 5 is stored inside memory. Since int are 32 bit values will it be stored like
0000 0000 0000 0000 0000 0000 0000 0101. if i am correct about this, then while performing an operation like this, int c = ~b; will it reult in a value like this? 1111 1111 1111 1111 1111 1111 1111 1010. Please clarify me. Thanks in advance! V.dinesh.