1 int main()
2 {
3 int i = 0;
4 int a[3] = { 0 };
5 a[i++] = 1;
6 printf("a[0] = %d, a[1] = %d/n", a[0], a[1]);
7 return 0;
8 }
~/testbench> gcc -o test2plus test2plus.c
test2plus.c: In function 'main':
test2plus.c:6: warning: incompatible implicit declaration of built-in function 'printf'
~/testbench> ./test2plus
a[0] = 1, a[1] = 0
2 {
3 int i = 0;
4 int a[3] = { 0 };
5 a[i++] = 1;
6 printf("a[0] = %d, a[1] = %d/n", a[0], a[1]);
7 return 0;
8 }
~/testbench> gcc -o test2plus test2plus.c
test2plus.c: In function 'main':
test2plus.c:6: warning: incompatible implicit declaration of built-in function 'printf'
~/testbench> ./test2plus
a[0] = 1, a[1] = 0