当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

(30 )有以下程序# include <stdio.h>main (){ int b [3][3]= { O , 1 , 2 , 0 , 1 , 2 ,


(30 )有以下程序

# include <stdio.h>

main ()

{ int b [3][3]= { O , 1 , 2 , 0 , 1 , 2 , O , 1 , 2 } , i , j , t=1 ;

for (i=0 ; i<3 ; i++ )

for (j=ij<=1 ; j++ ) t+=b[i][b[j][i]] ;

printf (" %d " ,t ) ;

程序运行后的输出结果是

A ) 1

B ) 3

C ) 4

D ) 9

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • (30 )有以下程序# include &lt;stdio.h&gt;main (){ int b [3][3]= { O , 1 , 2 , 0 , 1 , 2 ,

  • (31)有以下程序#include &lt;stdio.h&gt;main(){ char a[30],b[30];scanf("%s",a);gets(b);print

  • 试题32有以下程序#include <stdio.h>#include <string.h>main(){ char a[5][10]={“c

  • 有以下程序#include<stdio.h>#include<string.h>main(){char str[][20]={“Qne*World

  • 有以下程序#include<stdio.h>#include<string.h>main(){char a[10]=”abcd”;prinff(“

  • 有以下程序#include<stdio.h>#include<string.h>main( ){char x[]=“STRING”;x[0]=0;