M7350/system/core/libacc/tests/data/inc.c

15 lines
273 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
// Check integer operations
int main() {
int a = 0;
printf("%d\n", a++);
printf("%d\n", a++);
printf("%d\n", a--);
printf("%d\n", a--);
printf("%d\n", ++a);
printf("%d\n", ++a);
printf("%d\n", --a);
printf("%d\n", --a);
return a;
}