By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

reverse all the bits in a unsigned integer

P: n/a
.. 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
Share this Question
Share on Google+
6 Replies


P: n/a
* 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

P: n/a
On Mar 21, 7:06 pm, "Alf P. Steinbach" <a...@start.nowrote:
* 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

P: n/a

"hijkl" <s_******@yahoo.comwrote in message
news:11**********************@p15g2000hsd.googlegr oups.com...
On Mar 21, 7:06 pm, "Alf P. Steinbach" <a...@start.nowrote:
>* 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

P: n/a
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

P: n/a
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 :)
here is a link
http://www.aceemploymentservices.net...ions.htm#think
and some other links..
i am done with studies guys
ok have a fun

Mar 22 '07 #6

P: n/a
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 :)
here is a linkhttp://www.aceemploymentservices.net/Articles/Interviewers/Microsoft%...
and some other links..
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 discussion thread is closed

Replies have been disabled for this discussion.