Hello again,
X=1100110000110011
Y=0000111100001010
what is the binary representation of Y>>4?
my answer is...
0000000011110000
is this correct?
Hello again,
X=1100110000110011
Y=0000111100001010
what is the binary representation of Y>>4?
my answer is...
0000000011110000
is this correct?
"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee
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.
Hope is the first step on the road to disappointment.
I did not have to Q, I already knew.
Look I am a poet and didn't know it.
Later gator!
stay real!
"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee
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.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.
Hope is the first step on the road to disappointment.
If you had better things to do then why are you here on the computer then?
"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee