I want to known a simple thing. I have this part of code:
int datam=2;
for (int j=0; j<4; j++){
cout<<((datam >> j)&1);
}
What does it print this code? Does it do the AND bit to bit between 1
and datam>>j
? As operator, what's the meaning of datam >> j
? Thanks.