RVBTCC/demo/add.c

17 lines
302 B
C
Raw Normal View History

2024-11-28 14:50:12 +00:00
int printf(const char format[], ...);
int scanf(const char format[], ...);
int putchar(int ch);
2024-11-29 01:49:57 +00:00
int* p;
int f1() {
int a = 1;
return *(a+(a+(a+(a+(a+(a+(a+(a+(a+(a+(p))))))))))); // a[10]
}
2024-11-28 14:50:12 +00:00
int main() {
2024-11-29 01:49:57 +00:00
int a[15];
p = a;
2024-11-30 03:19:13 +00:00
for (int i = 0; i < 15; a[i] = i, ++i);
2024-11-29 01:49:57 +00:00
return f1();
2024-11-28 14:50:12 +00:00
}