RVBTCC/test/operator/unary.c

9 lines
169 B
C
Raw Normal View History

2024-12-24 15:18:03 +00:00
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);
}