For example if the bit pattern 11100101 corresponding to


Write a C++ program that reverses the bits in an integer variable named okay and stores the reversed bits in the variable named revokay. For example, if the bit pattern 11100101, corresponding to the octal number 0345, is assigned to okay, the bit pattern 10100111, corresponding to the octal number 0247, should be produced and stored in revokay.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: For example if the bit pattern 11100101 corresponding to
Reference No:- TGS02196965

Expected delivery within 24 Hours