以下程序运行后的输出结果是 ______。 #include<stdio.h> struct NODE { int k; char s[20]
已帮助 人
以下程序运行后的输出结果是 ______。 #include<stdio.h> struct NODE { int k; char s[20]; }; int main() { struct NODE m[3]; int i; for(i=0;i<3;i++) m[i].k=i+1; for(i=0;i<3;i++) printf("%d ",m[i].k); return 0; }
![以下程序运行后的输出结果是 ______。 #include<stdio.h> struct NODE { int k; char s[20]](/uploads/allimg/6-3007543Q9.jpg)
回答
共1条回复-
D 本程序中通过DATA语句对数组B赋值的结果为矩阵DO循环语句的功能是将数组B的第2列的元素的值依次赋值给数组A。因此,A(1)=4、A(2)=5、A(3)=6,所以格式输出数组A后输出的结果为456。
