473,888 Members | 1,294 Online

# reverse all the bits in a unsigned integer

.. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?

Mar 22 '07 #1
6 3120
* hijkl:
. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?
Check out the FAQ's solutions to homework problems.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 22 '07 #2
On Mar 21, 7:06 pm, "Alf P. Steinbach" <a...@start.now rote:
* hijkl:
. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?

Check out the FAQ's solutions to homework problems.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Hi Alf,
what is that?? i didnt get you :)

Mar 22 '07 #3

"hijkl" <s_******@yahoo .comwrote in message
news:11******** **************@ p15g2000hsd.goo glegroups.com.. .
On Mar 21, 7:06 pm, "Alf P. Steinbach" <a...@start.now rote:
>* hijkl:
. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?

Check out the FAQ's solutions to homework problems.

Hi Alf,
what is that?? i didnt get you :)
Alf is saying we won't do your homework for you. However, I will point you
in the right direction. If you want to reverse the bits, look at xor
(exclusive or).
Mar 22 '07 #4
On Mar 22, 11:01 am, "hijkl" <s_mah...@yahoo .comwrote:
. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?
Learn yourself abuot bitwise operators. :)

Mar 22 '07 #5
On Mar 21, 7:33 pm, "Sarath" <CSar...@gmail. comwrote:
On Mar 22, 11:01 am, "hijkl" <s_mah...@yahoo .comwrote:
. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?

Learn yourself abuot bitwise operators. :)
hey guys
this is not homework questions :) ..
i was preparing for interview. i founf these questions on net :)
http://www.aceemploymentservices.net...ions.htm#think
i am done with studies guys
ok have a fun

Mar 22 '07 #6
On 22 Mar, 06:47, "hijkl" <s_mah...@yahoo .comwrote:
On Mar 21, 7:33 pm, "Sarath" <CSar...@gmail. comwrote:
On Mar 22, 11:01 am, "hijkl" <s_mah...@yahoo .comwrote:
. How to reverse all the bits in a unsigned integer? an signed
integer (you have to keep the sign of the integer)?
Learn yourself abuot bitwise operators. :)

hey guys
this is not homework questions :) ..
i was preparing for interview. i founf these questions on net :)
We define homework as anything where you want other people to solve or
figure out simple things for you.

--
Erik Wikström

Mar 22 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.