Q : WAP to increment a given number by one using bitwise operators
Q: WAP to toggle a bit at given position in given 32-bits number
Q: WAP to overlap the bits from one number to another given number if the overlapping bit position is given
Q: WAP to toggle all bits in a given 32-bits number
Q: WAP to swap two nibbles in a given number
Q: WAP to find number of set bits in a given 32-bits number
Q: WAP to swap adjacent bits in a given 32-bits number
Q: WAP to shift all one's at one side in a given 32-bits number. i.e num = 0xcccccccc o/p - 0xffff0000
Q: WAP to display all set bit position in a given 32-bits number
Q: Program for putting bits into buffer. This is useful in compression of data, avoide wastage of bits. This program will work for any 32-bits integers.
Q: WAP to toggle a bit at given position in given 32-bits number
Q: WAP to overlap the bits from one number to another given number if the overlapping bit position is given
Q: WAP to toggle all bits in a given 32-bits number
Q: WAP to swap two nibbles in a given number
Q: WAP to find number of set bits in a given 32-bits number
Q: WAP to swap adjacent bits in a given 32-bits number
Q: WAP to shift all one's at one side in a given 32-bits number. i.e num = 0xcccccccc o/p - 0xffff0000
Q: WAP to display all set bit position in a given 32-bits number
Q: Program for putting bits into buffer. This is useful in compression of data, avoide wastage of bits. This program will work for any 32-bits integers.
No comments:
Post a Comment