MIPI_AdvancedC_FRTK/Lect1/13_task_4_page_21.c
2024-11-14 08:45:50 +03:00

19 lines
243 B
C

#include <stdio.h>
#include <stdint.h>
int32_t inverse5bits(int n)
{
return n ^ 0x1F;
}
int main ()
{
int32_t a = 0xFF;
printf("%x\n", a);
a = inverse5bits(a);
printf("%x\n", a);
a = inverse5bits(a);
printf("%x\n", a);
return 0;
}