现有如下程序段#include "stdio.h"main(){ int ...}则程序段的输出结果为________
举一反三
- 现有如下程序段 #include"stdio.h" main() {int a[5][6]={23,3,65,21,6,78,28,5,67,25,435,76,8,22,45,7,8,34,6,78,32,4,5,67,4,21,1}; int i=0,j=5; printf"%d ",*&a[0][0]+2*i+j-2;} 则程序的输出结果为.
- 现有如下程序段 #include"stdio.h" main() {int a[5][6]={23,3,65,21,6,78,28,5,67,25,435,76,8,22,45,7,8,34,6,78,32,4,5,67,4,21,1}; int i=0,j=5; printf("%d\n",*&a[0][0]+2*i+j-2);} 则程序的输出结果为.
- 现有如下程序段: #include"stdio.h" main() {int k[30]={12,324,45,6,768,98,21,34,453,456}; int count=0,i=0; while(k[i]) {if(k[i]%2==0||k[i]%5==0)count++; i++;} printf("%d,%d\n",count,i);} 则程序段的输出结果为.
- 有以下程序段,输出结果为()。 #include<stdio.h> main() {int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; int (*p)[4]=a; printf("%d ",*p); }
- 下列程序段正确的是______。 A: #include <stdio.h> main() { int i, j; int(i)=j; } B: #include <stdio.h>; include <stdio.h> #include <stdio.h> main() { } C: main() { int i, j; } D: main() { }