There are many potential problems in the code.
, int. , undefined/ , << >> .
, , , . uint32_t stdint.h.
, , uint8_t, char, short, bool .., , int, . , unsigned char uint8_t. , .
, , printf , . , , . , undefined, . , -, ( ), .
"" , , ~ printf, unsigned int, %x.
, - :
#include <stdio.h>
#include <inttypes.h>
int main()
{
uint32_t a = 0xAF;
uint32_t b = 0xB5;
printf("%.8" PRIx32 "\n", a & b);
printf("%.8" PRIx32 "\n", a | b);
printf("%.8" PRIx32 "\n", a ^ b);
printf("%.8" PRIx32 "\n", ~a);
printf("%.8" PRIx32 "\n", a << 2);
printf("%.8" PRIx32 "\n", b >> 3);
return 0;
}