MIPI_AdvancedC_FRTK/Lect1/01_page_6.c

14 lines
300 B
C
Raw Normal View History

2024-11-14 08:45:50 +03:00
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
int main(void)
{
int32_t x = 3, y = 8;//0b0011 = 3, 0b1000 = 8
(x & y) ? printf("True ") : printf("False ");//0b0011 & 0b1000 = 0b0000
(x && y) ? printf("True ") : printf("False ");//0b0011 && 0b1000 = 0b0001
return 0;
}