Archive for the ‘Bits & Bytes Manipulation’ Category

ASCII Case Conversion

/*
* case_conv.c – Program to change case without using arithmetic
* operators or library functions. This program
* [...]

Continue Reading..
Posted in Algorithms, Bits & Bytes Manipulation

Bit swapping – Style I

This program shows a logic of swapping the most significant bit with the least significant bit, second most significant bit with the second least significant bit, and so on.

/* * swap_bits.c  -   Swap corresponding bits*/
/* *  This program swaps the corresponding bits of a character.  For example, *          msb (bit 7) is exchanged with lsb [...]

Continue Reading..
Posted in Bits & Bytes Manipulation