Function below has to set n th bit to value. Both n and value are given to function. int setBit (int value, int nth) { return / * look at the choices * / } code example
Example: set the nth bit
number |= (1 << n);
number |= (1 << n);