网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

有下列程序段,程序段运行后的输出结果是()。 int t[]={0,1,2,3,4,5,6,7,8,9}, *p; p=t; printf("%dn", *p+9);

A.0

B.1

C.9

D.10


参考答案和解析
a=10 b=50 c=10
更多 “有下列程序段,程序段运行后的输出结果是()。 int t[]={0,1,2,3,4,5,6,7,8,9}, *p; p=t; printf("%dn", *p+9);A.0B.1C.9D.10” 相关考题
考题 以下程序的输出结果是 【 11 】 。#include stdio.hvoid swap(int *a,int *b){ int *t;t=a; a=b; b=t;}main(){ int i=3,j=5,*p=i,*q=j;swap(p,q); printf("%d %d\n",*p,*q);}

考题 有以下程序#include stdio.hvoid fun(int p){ int d=2;p=d++; printf("%d",p);}main(){ int a=1;fun(a); printf("%d\n",a);}程序运行后的输出结果是A)32B)12C)21D)22

考题 以下程序运行后的输出结果是。main(){ char s[]="GEFDCBA"; int p=6;While(s[p]!=’D’){ printf("%c",p);p=p-1; }}

考题 下面程序的输出结果是#includestdio.hmain(){ int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("%d\n",*p+9);}A.0B.1C.10D.9

考题 下列程序的输出结果是【 】。include void swap(int *a, int *B) { int *t; t=a;a=b;b=t; 下列程序的输出结果是【 】。include <stdio.h>void swap(int *a, int *B){int *t;t=a;a=b;b=t;}main(){int i=3,j=5,*p=i,*q=j;swap(p,q);printf("%d %d\n",*p,*q);}

考题 以下程序的输出结果是______。include void swap(int *a, int *b){ int *t;}{ int i=3,j 以下程序的输出结果是______。include <stdio.h>void swap(int *a, int *b){ int *t;}{ int i=3,j=5,*p=i,*q=j;swap(p,q); printf("%d %d\n",*p,*q);

考题 下列程序的运行结果是()。includevoid fun(int*s,int*p){ static int t=3;*p=s[t];t--; 下列程序的运行结果是( )。#include<stdio.h>void fun(int*s,int*p){ static int t=3; *p=s[t]; t--;}void main(){ int a[]={2,3,4,5),k; int x; for(k=0;k<4;k++) { fun(a,x); printf("%d,",x); }}A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,

考题 有以下程序:main(){ int a=7,b=8, *p, *q, *r;p=a; q=b;r=p; p=q; q=r;printf("%d,%d,%d,%d\n", *p,*q,a,b);}程序运行后的输出结果是【 】。

考题 下列程序的运行结果是()。includevoid fun (int*s,int*p){ static int t=3; *p=s [t]; 下列程序的运行结果是( )。 #include<stdio.h> void fun (int*s,int*p) { static int t=3; *p=s [t]; t--; } void main() int a[]={2, 3, 4, 5},k; int x; for(k=0; k<4; k++) { fun (a, x); printf("%d,", x); }A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,

考题 有以下程序:includevoid f(char p[][10],int n){char t[10];int i,j;for(i=0;i 有以下程序: #include<string.h> void f(char p[][10],int n) {char t[10];int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) if(strcmp(p[i],p[j])>0) {strcpy(t,p[i]);strcpy(p[i],p[j]);strcpy(p[j],t);} } main() {char p[5][10]={"abc","aabdfg","abbd","dedbe","cd"}; f(p,5); printf("%d\n",strlen(p[0]));} 程序运行后的输出结果是( )。A.2B.4C.6D.3

考题 下面程序的输出结果是includemain(){int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("% 下面程序的输出结果是 #include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*p+9);}A.0B.1C.10D.9

考题 有以下程序 #includestdio.h void fun(int p) {int d=2; p=d++;printf("%d".p);} main( ) {int a=1; fun(a):printf("%d\n",a);) 程序运行后的输出结果是( )。A.32B.12C.21D.22

考题 下列程序段的输出结果是______。 int **pp,*p; int a=10,b=20; p=a; pp=p; p=b; printf("%d,%d\n",*p,**pp);A.10,20B.10,10C.20,20D.20,10

考题 有以下程序#include stdio.h#include stdlib.hint fun(int t){ int *p; p=(int*)malloc(sizeof(int)); *p=t; return *p;}main(){ int a; a = fun(8); printf("%d\n", a+fun(10));}程序的运行结果是A.0 B.10 C.18 D.出错

考题 以下程序运行后的输出结果是main{ int p=30; printf("%d\n",(p/30?p/10 : p%3));}

考题 下列程序舶输出结果是【 】。include main() {int a[5]={2,4,6,8,10},*p;p=a;p++;printf(" 下列程序舶输出结果是【 】。include <stdio.h>main(){int a[5]={2,4,6,8,10},*p;p=a;p++;printf("%d",*p);}

考题 下面程序的输出结果是______。 main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*(p+9)); }A.0B.1C.10D.9

考题 有以下程序#includestdio.hvoid fun(int P){int d=2;P=d++;printf(“%d”,P);}main( ){int a=1;fun(A);prinff(“%.d\n”,A);}程序运行后的输出结果是A.32B.12C.21D.22

考题 下面程序的运行结果是void swap(int *a,int *b){ int *t; t=a;a=b;b=t;}main(){ int x=3,y=5,*p=x,*q=y; swap(p,q); printf("%d%d\n",*p,*q);}

考题 若有如下程序: f2(char*t){*t=*t-32; return(*t);}fl(char*p){for(;*p!='\0';p++) if(*p>='a'*p<='z')f2(p); } main() {char a[10]="abcbgH"; f1(a); printf("%S",a); } 则程序运行后的输出结果是( )。A.ABCBGHB.abcdefghC.abcdgD.EFH

考题 若有如下程序: sub(int * t,int n) {int *p1, *p2; for(p1=t,p2=t;p1-t<n;p1++) if(*p1<*p2) p2=p1; return(*p2);} main() {int a[9]={9,36,19,39,26,5,6,33,15}; printf("%d\n",sub(a,9));} 则程序运行后的输出结果是( )A.5B.9C.15D.39

考题 若有如下程序: int s[3] [3]={'a','b','C','d','e','f','g','h','i'},*t; main() {t:(int*)malloc(sizeof(int)); sub(t,s); printf("%c\n",*t); } sub(int*p,int b[][3]) {*p=b[2][1]; } 则程序运行后的输出结果是( )。A.dB.eC.hD.b

考题 以下程序的输出结果是( )。 include void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main 以下程序的输出结果是( )。 include<stdio.h> void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main() {int i=3,j=5,*p=i,*q=j; swap(p,q);printf("%d %d\n",*p,*q); }

考题 以下程序段的输出结果是()。      int a=l,b=2,*p=&a,*q=&b;         p=q;*p=3;    printf(“%d”,b);

考题 填空题以下程序段的输出结果是()。      int a=l,b=2,*p=&a,*q=&b;         p=q;*p=3;    printf(“%d”,b);

考题 单选题有以下程序:#include void fun(int *s,int t,int *k){ int p; for(p=0,*k=p;p  if(s[p]s[*k])*k=p;}main(){ int a[10]={11,12,13,14,15,16,20,18,19,10},k; fun(a,10,k); printf("%d,%d",k,a[k]);}程序运行后的输出结果是(  )。A 6,20B 10,9C 7,20D 10,10

考题 单选题有以下程序#include void fun(int *p,int *q){ int t; t = *p; *p = *q; *q = t; *q = *p;}main(){ int a = 0,b = 9; fun(a,b); printf(%d %d,a,b);}程序的输出结果是(  )。A 0 9B 0 0C 9 0D 9 9

考题 单选题有以下程序:#include #include void fun(int*p1,int*s){ int *t; t=(int*)malloc(2*sizeof(int)); *t=*p1+*p1++; *(t+1)=*p1+*p1; s=t;}main(){ int a[2]={1,2}, b[2]={0}; fun(a,b); printf(%d,%d,b[0],b[1]);}程序运行后的输出结果是(  )。A 2,6B 0,0C 2,4D 1,2