could somebody explain when, why, and what bitwise and shift operators are used? I am very confused about them and don't see very much of a point to them. ------------------ I wish there was a button on my monitor to turn up the intellegince. Theres a button called 'brightness' but it doesn't work
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
Hi donot worry about the buttons of intelligence OR brightness to be working Happy that the monitor On/OFF butoon is OK and the button is On
Any way bitwise operators are majorly used in embedded system where there is always Space complexity So these operators are used to findout the bitpattern of the number so that calculation can be done faster like If I m interested in multiplying the number and make it double i will just left shift it by One Hope this much justification is enough Manish firstname.lastname@example.org
Joined: Oct 15, 2000
thank you manish. ------------------ I wish there was a button on my monitor to turn up the intellegince. Theres a button called 'brightness' but it doesn't work
One of the biggest uses of bit manipulation today, if not the biggest, is data encryption and license information. A value know to both ends of the transmission (know as a key) is & on to the data when transmitted and | off when recieved (basically). If you are writing your own private encryption for transmission or license keys for your software, you can use your own combination of shifting, & | ~ etc to ensure that your information is difficult to crack.