Bitwise operations in C Bitwise operations in C In the C programming language, operations can be performed on a bit level using bitwise operators. Bitwise operations are contrasted by byte-level operations which characterize the bitwise operators' logical counterparts, the AND, OR and NOT operators. Instead of performing on individual bits, byte-level operators perform on strings of eight bits (known as bytes) at a time. The reason for this is that a byte is normally the smallest unit of addressable memory (i.e. data with a unique memory address.) This applies to bitwise operators as well, which means that even though they operate on only one
Byte addressing systems, such as the PDP-10, use word addressing but facilitate access to individual bytes using special instructions which can access memory using a "byte pointer", which contains both a word address and the index of a specific byte within the word. Byte addressing Byte addressing refers to hardware architectures which support accessing individual bytes of data rather than only larger units called words, which would be "word-addressable". Such computers are sometimes called "byte machines" (in contrast to "word machines"). The basic unit of digital storage is called a bit, storing a single 0 or 1. Many common architectures can address