Home arrow C++ arrow Page 5 - Bitwise Operators

Bitwise Operators

Programming machines has always been a difficult task; newer techniques try to solve this by automating the tougher tasks, the low-level handling of the machines. However, some gates have been left open to the older methods, so whenever you wish to use them you are able to do so. At least this applies to C/C++. In this article you'll see how to use bitwise operators in C/C++, and learn why you may want to use them.

Author Info:
By: Gabor Bernat
Rating: 4 stars4 stars4 stars4 stars4 stars / 6
February 24, 2009
  1. · Bitwise Operators
  2. · Shift Operators
  3. · Bitwise and, or, and exclusive or
  4. · Masking Technique and Handy Tricks
  5. · Conclusion

print this article

Bitwise Operators - Conclusion
(Page 5 of 5 )

As you can see the usage of single bitwise operators just by themselves on their own can be quite limited, but if you figure out a good equation, together they can work wonders. But don't forget that you have yet to see most of their usage.

We arrived at the end of the first part and somehow managed to learn every one of the operators and some smart tricks for how to chain them together to get access to modify a single bit, the smallest segment in the memory of a computer. Take your time to understand what you have learned, as this will be absolutely necessary for the upcoming article: Bitwise Operators in Action.

You'll learn why, how, and where to use them. I shall also present usages that you'll see daily if you became a coder, and also a few methods that can make the difference between a good completion code and one that struggles to finish an algorithm today.

Until that occurs, make yourself at home within our Dev Network and remember that to succeed, first you must try, and then never give up no matter what happens. If you have further questions, the blog posting section that follows the article was meant for this "sacred" purpose, and if you visit our friendly and ever-growing forum over the DevHardware, information won't be denied to you.

DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus

- Intel Threading Building Blocks
- Threading Building Blocks with C++
- Video Memory Programming in Text Mode
- More Tricks to Gain Speed in Programming Con...
- Easy and Efficient Programming for Contests
- Preparing For Programming Contests
- Programming Contests: Why Bother?
- Polymorphism in C++
- Overview of Virtual Functions
- Inheritance in C++
- Extending the Basic Streams in C++
- Using Stringstreams in C++
- Custom Stream Manipulation in C++
- General Stream Manipulation in C++
- Serialize Your Class into Streams in C++

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials