|
|
|
int main( int argc, char* argv[] )
{
char a = 0; /* 0 = 00000000 */
/* Bit pos: 76543210 */
a = a | 4; /* 16 = 00000100 - set 2nd bit */
a = a | 16; /* 16 = 00010000 - set 4th bit */
printf( "a = %d\n", a );
}
|
How to run the program:
|
|
|