RVBTCC/test/operator/unary.c
2024-12-24 23:18:03 +08:00

9 lines
169 B
C

int printf(char* format, ...);
int main() {
int a = 5;
printf("+a=%d\n", +a);
printf("-a=%d\n", -a);
printf("!a=%d\n", !a);
printf("~a=%d\n", ~a);
}