How will this program get executed?
#include <stdio.h>
void main() {
char a = 0xAA;
int b;
b = (int) a;
printf("%d\n", a);
b = b >> 4;
printf("%x", b);
}
[Question]
I have problem in statement b = (int)a
. Can you give the binary representation of b
when a
is stored in it?