chinmay.sahoo
New member
Since C++ is designed to allow full access to the computer’s hardware, it is important that it have the ability to operate directly upon the bits within a byte or word. Towards this end, C++ contains the bitwise operators. Bitwise operations refer to the testing, setting, or shifting of the actual bits in a byte or word, which correspond to C++’s character and integer types. Bitwise operations may not be used on bool, float, double, long double, void, or other more complex data types. Bitwise operations are important in a wide variety of systems-level programming in which status information from a device must be interrogated or constructed.