See the differences of the following three pieces of code and test them in both VC6.0 and gcc.
#include<stdio.h>
int main() { int x,y,z; int i; int a[16];
for(i=0;i<=16;i++) { a[i]=0; printf("%d",i); }
return 0; }
|
#include<stdio.h>
int main() { int x,y,z; int a[16]; int i;
for(i=0;i<=16;i++) { a[i]=0; printf("%d",i); }
return 0; }
|
#include<stdio.h>
int main() { int i; int a[16];
for(i=0;i<=16;i++) { a[i]=0; printf("%d",i); }
return 0; }
|
阅读(626) | 评论(0) | 转发(0) |