한국어

나눔방

q2

2024.05.31 12:42

진저리 조회 수:8

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
printf("%d << 2 = %d \n", 13, 13 << 2);
printf("!%d | 1 = %d \n", 13, !13 | 1);
printf("3*(%d / 2) - 1 = %d \n", 13, 3*(13 / 2) - 1);
printf("%d & 0 = %d \n", 13, 13 & 0);
printf("~%d + 1 = %d \n", 13, ~13 + 1);
printf("%d && 0 = %d \n", 13, 13 && 0);
printf("%d || 1 = %d \n", 13, 13 || 1);
printf("!~%d + 3 = %d \n", 13, !~13 +3);
return 0;
}