MIPI_BaseC_WebinarFRTK/17_Seminar04/04_rise_2_bits_p9.c
2024-11-13 09:22:28 +03:00

14 lines
245 B
C

#include <stdio.h>
#include <inttypes.h>
int main( )
{
unsigned int a=0xFFFFFF00, mask=-1; // mask = 0xffffffff
//~ mask = mask>>(32 - 2);
mask = 0b11;
a = a | mask;
printf("a = %x", a);
// a = ffffff03
return 0;
}