c語言for循環(huán)詳解 c語言中for循環(huán)嵌套的執(zhí)行順序疑問?
c語言中for循環(huán)嵌套的執(zhí)行順序疑問?/*您的程序有問題。更改后很容易理解*/#include<stdio。H>int main(){tint I/tint a[10]T/T對于(I=0I&l
c語言中for循環(huán)嵌套的執(zhí)行順序疑問?
/*您的程序有問題。更改后很容易理解*/#include<stdio。H>int main(){tint I/tint a[10]T/T對于(I=0I<10i)T/tscanf(%d“,&A[I])T/T/*此循環(huán)的結(jié)尾有一個(gè)分號(hào),因此它是一個(gè)空循環(huán)。Tfor(I=0I<10i)%t/tprintf(%d”,a[I])修改如下:*/Tfor(I=0I<10i)) printf(%d”,a[I]) printf(“n”) Tfor(I=9i>=0I--) printf(%d”,a[I]) 返回0}