Answers for "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 * / }"

C
0

set the nth bit

number |=  (1 << n);
Posted by: Guest on September-02-2020

Code answers related to "C"

Browse Popular Code Answers by Language