int number = 199
Set the nth bit (set to 1)
number |= 1 << n;
Clear the nth bit (set to 0)
number &= ~(1 << n);
Invert the nth bit (1 to 0, 0 to 1)
number ^= 1 << n;
get the nth bit value:
bit = (number >> n) & 1;