Question: can someone explain the logic behind this code. this code works but i just need an explanation. * allOddBits return 1 if all odd-numbered bits
can someone explain the logic behind this code. this code works but i just need an explanation. 
* allOddBits return 1 if all odd-numbered bits in word set to 1 * Examples allOddBits (OxFFFFFFFD) - 0, allOddBits (OxAAAAAAAA) - 1 Legal ops: ! ^&^ + > * Max ops: 12 * Rating: 2 */ /*int allOddBits(int x) { return 2; 1*/ int allOddBits(int x) { int data_val = (OxAA > * Max ops: 12 Rating: 2 */ *int allOddBits(int x) { return 2; */ nt alloddBits(int x) { int data_val = (OxAA > * Max ops: 12 * Rating: 2 */ /*int allOddBits(int x) { return 2; 1*/ int allOddBits(int x) { int data_val = (OxAA > * Max ops: 12 Rating: 2 */ *int allOddBits(int x) { return 2; */ nt alloddBits(int x) { int data_val = (OxAA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
