下面程序段的运行结果是( )注意输出结果的格式#include void main(){char *p=”abcdefgh”;p+=3;printf(%s\n,p);}
下面程序的运行结果是 ( )。 #include int main( ) { int i=10,s=0; for(i=1;i<=10;i++) { if(i%3!=0) continue; s=s+i; } printf(\%d\,s); return 0; }
下面程序的运行结果是 ( )。 #include int main( ) { int i=10,s=0; while(i>0) { if(i%3==0) continue; s=s+i; i--;} printf(\s=%d\,s); return 0; }
读程序,写运行结果。 #include #include using namespace std; int main() {int t[3][4]={{1,2,3,4},{5,6,7,8},{9}},i,j; for(i=0;i<3;i++) for(j=0;j<4;j++) cout<
下面程序的运行结果是 ( ) 。 #include int main() { int i,b,k=0; for(i=1;i<=5;i++) { b=i%2; while(b-->=0)k++; } printf(\%d,%d\,k,b); return 0; }
有下面程序段 include"stdio.h" include"string.h" main() { char a[3][20]={{"china"},{"isa"},{"bigcountry!"}}; chark[100]={0},*p=k; int i; for(i=0;i<3;i++) {p=strcat(p,a[i]);} i=strlen(p); printf("%d\n","i);} 则程序段的输出结果是
下面程序的运行结果为#include<iostream.h>void main( )char a='3';switch(
下面程序的运行结果是__。include< stdio.h >main(){ int a[5],i; for(i=0;i< 5;i++) { a=9(i-2+4(i >3))%5; printf(“%2d”,a); } }
有以下程序 include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++) c[s[i]++; for(i=l;i<5;i++) printf("%d",c[i]); printf("\n"); } 程序的运行结果是
给出下面程序的运行结果。 include <stdio.h> int main(void) { static int x[] = {1,2,3}; int s = 1, i, *p = x; for (i=0; i<3; i++) { s*="*(p" + i); } printf("%d\n", s); return 0;>
有以下程序 include <stdio.h> void main() { int i; for(i=0;i<3;i++) { switch(i) case 1: printf("%3d",i); 2: default: } 程序运行后的输出结果是()>
程序中头文件typel.h的内容是: define N 5 define M1 N *3 程序如下: include“typel.h” define M2 N*2 main() { int i; i=M1+M2;Printf(“%d\n”,0; } 程序编译后运行的输出结果是:
下面程序的运行结果是【】。 include<iostream> using namespace std; void fun(int&a,int b=3)
下面程序的运行结果是include<iostream.h>void main(){int i=1;while(i<=8)if (i%3!=2)cont
下面程序的运行结果为()。 include<iostream.h> voidmain() { chara=3: switch(a) {
下面程序的运行结果是__。include< stdio.h >main(){ int a[3][3]={1,2,3,4,5,6,7,8,9},i; for(i=0;i<=2;i++) printf(“%d “,a[2-i]); }
有下列程序: include voidmain() { ints[12]={1,2,3,4,4,3,2,1,1,1,2,3),c[5]= {0},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf("%d",c[i]); printf("\n") } 程序的运行结果是()。
运行下面程序,输出结果是: include <stdio.h> int main() { int i = 10,j = 0; do { j = j + i; /*第一:10,第二:19第三:27第四:34第五:40*/ i--; }while(i > 5); printf(“%d\n”,j); }
有如下程序: include main() { int a[5]={1,2,3,4,5},b[5]={0,2,1,3,0),i,s=0; for(i=0;i<5;i++)s=s+aEb[i]; printf(“%d\n”,s); } 程序运行后的输出结果是()。
有以下程序: include main() {int i,j,m=1; for(i=1;i<3;i++) {for(j=3;j>0;j--) {if(i*j>3)break; m*=i+j; } } printf("m=%d\n",m); } 程序运行后的输出结果是()。
下面程序段运行的结果为()。includeint try1();int try1(){static int x=3; x++; return x;}void main(){int i,x; for(i=0; i<=2; i++) x=try1(); printf("%d/n", x);}
5、下面程序的运行结果是 。 include <stdio.h> main() {char ch[7]={“12ab56”}; int i,s=0; for(i=0;ch[i]>=’0’&&ch[i]<=’9’;i+=2) s=10*s+ch[i]-‘0’; printf(“%d”,s); }
有以下程序include<stdio.h>main{inti,j;for(i=3;i>=1;i--){for(j=1;j<=2;j++)printf(%d,i+j);printf(\n);}}程序的运行结果是()
"(专基)//下面程序输出结果是()include<stdio.h>void main(){int i;for(i=1;i<=5;i++){if(i==3)continue;printf(""%d\t"",i);}}