下面程序段的运行结果是( ) .

int a[ ][3]={1,2,3,4,5,6,7,8,9,10,11,12}; printf(“%d尀n”,a[2][1]);
2024-11-20 09:21:04
推荐回答(1个)
回答(1):

if((fp=fopen("\\temp","w+"))==NULL)
{
printf("can not create temp file\n");
exit(0);
}
for(i=1;i<=10;i++)
fprintf(fp,"%3d",i);
for(i=0;i<5;i++)
{
fseek(fp,i*6,SEEK_SET);
fscanf(fp,"%d",&n);
printf("%3d",n);
}
printf("%3d",n);
A。1 2 3 4 5 6 7 8 9 10
B。2 4 6 8 10
C。1 2 3 4 5
D。1 3 5 7 9
步骤求教 程序段执行结_______ For i=1 To 4 x=2 For j=1 To 3 x=1 For k=1 To 2 x=x+3 Next k Next j Next i Print x