MIPI_AdvancedC_FRTK/Lect1/13_task_4_page_21.c

19 lines
243 B
C
Raw Permalink Normal View History

2024-11-14 08:45:50 +03:00
#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;
}