Pages1

Showing posts with label Reversing bits. Show all posts
Showing posts with label Reversing bits. Show all posts

C Program to reverse bits in character, integer; function to print bits of a character integer

#include<stdio.h>
void printBits(unsigned int num)
{
        char bit =0;
        for(bit=0;bit<(sizeof(unsigned char) * 8); bit++)
        {