Hello folks,
Can I get the source code for the following
1) count no. of 1s and 0s in a byte or a binary number eg. 01011101
2) Toggle nth bit of a given integer ( I also need explanation for this)
3) Turn all 1s to 0s and all 0s to 1s in a byte eg. 01011101
4) print array elements in reverse order
5) reverse bits in a byte eg. 01011101 should become 10111010
Regards,
Avins