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

12 lines
287 B
C

#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
}