What is the best way to set a particular bit in a variable in C -
one variable Now say I want to set any i'th bit in '1' in this variable. Note that there is some value in the variable. Then bitword or unsigned int a; View in C
a = (1 <
will not work
a = a + (1 Will work, but I'm exploring the fastest way. anything ??
a | = (1
Comments
Post a Comment