Hello again,
X=1100110000110011
Y=0000111100001010
what is the binary representation of Y>>4?
my answer is...
0000000011110000
is this correct?
Printable View
Hello again,
X=1100110000110011
Y=0000111100001010
what is the binary representation of Y>>4?
my answer is...
0000000011110000
is this correct?
Write a program to find out.
But yeah, that would be correct.Code:void printbits( unsinged long int x )
{
long int y;
for( y = 0; y < sizeof( unsinged long int ) * 8; y++ )
printf("%d",(x&(1<<y)));
}
Quzah.
I did not have to Q, I already knew.
Look I am a poet and didn't know it.
Later gator!
stay real!
;)
If you already knew, then what was the point of even posting? I have better things to do than to answer questions you already know the answer to.Quote:
Originally posted by correlcj
I did not have to Q, already knew.
Look i am a poet and didn't know it.
Later gator!
stay real!
;)
Quzah.
If you had better things to do then why are you here on the computer then?
:p