The Bitwise Operations in Relation to the Concept of Set
Krasimir Yordzhev *
Faculty of Mathematics and Natural Sciences, South-West University, 66 Ivan Mihailov Str, 2700 Blagoevgrad, Bulgaria
*Author to whom correspondence should be addressed.
Abstract
We contemplate this article to help the teachers of programming in his aspiration for giving some appropriate and interesting examples. The work will be especially useful for students-future programmers, and for their lecturers.
Some of the strong sides of these programming languages C/C++ and Java are the possibilities of low-level programming. Some of the means for this possibility are the introduced standard bitwise operations, with the help of which, it is possible directly operate with every bit of an arbitrary variable situated in the computer’s memory.
In the current study, we are going to describe some methodical aspects for work with the bitwise operations and we will discuss the benefit of using bitwise operations in programming. The article shows some advantages of using bitwise operations, realising various operations with sets.
Keywords: Bitwise operation, set, integer representation of sets, class, overloading of operators