I
Ina
I would like to use an integer as 16 individual bits. How
do I set/reset a bit without affecting the other bit-
values?
Like my integer is:
0010 0111 0001 1101
and I would like to set the 15th bit:
0010 0111 0001 1111
or I would like to reset the 13th bit:
0010 0111 0001 0101
do I set/reset a bit without affecting the other bit-
values?
Like my integer is:
0010 0111 0001 1101
and I would like to set the 15th bit:
0010 0111 0001 1111
or I would like to reset the 13th bit:
0010 0111 0001 0101