Write a program to swap odd and even bits in an unsigned integer with as few
instructions as possible (e.g., bit 0 and bit 1 are swapped, bit 2 and bit 3
are swapped, etc).
eg[?]
input---
1234567
7654321
888
output--
411
12109682
948
--
regards
*Sudhir Mishra*
MNNIT ALLAHABAD
--
#includestdio.h
int main()
{
int a,b=0x,c=0x;
scanf(%d,a);
a=((ab)1)+((ac)1);
printf(%d,a);
}
From: sudhir mishra sudhir08.mis...@gmail.com
To: algogeeks@googlegroups.com
Sent: Fri, 12 November, 2010 1:42:46 PM
Subject: Re: [algogeeks] Learn
(((x 0x)1) | ((x 0x)1))
5 bit operations in total.
On 2010-11-12 16:12, sudhir mishra wrote:
Write a program to swap odd and even bits in an unsigned integer with
as few instructions as possible (e.g., bit 0 and bit 1 are swapped,
bit 2 and bit 3 are swapped, etc).
If you really want to learn how to trade currency while sitting at
home, start online Forex trading starting as low as 25.00 USD. Click
on the following link to get started immediately. Commission free and
24/5 support
http://www.directoryforex.com/?gid=76922
--
You received this message
Read the free tutorial on Options trading which can teach you the basics.
Start Option Trading with Knowledge and Minimum Risk. Read
Morehttp://workfromhomedepot.blogspot.com/2008/01/getting-ready-for-option-trading.html
--
Yours Sincerely
Team, Share N Care Blog.
Module 1 - Introduction to ethical hacking
- What does a malicious hacker do?
- Hacker classes
- Vulnerability research
- Ethical hacking testing
- Security websites
- Review - Module 1
Module 2 - Footprinting
- Reconnaissance phase and footprinting
- Scenario (cont.)
- Tools - Sam Spade
- Tools
1. Windows Hacking: Desktop Tools
1.1 Win2000 Nt
1.2 Registry Tools
1.3 Program Monitoring
1.4 Miscellanious
1.5 Keyboard Logger
1.6 Anonymous Email
1.7 Browser Monitoring
1.8 Ad And Banner Killer
2. Networking: IRC Tools
2.1 mIRC Tools
2.2 mIRC BOTS
2.3 mIRC Addon Scripts
2.4 XiRCON Scripts