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

题目内容 (请给出正确答案)
以下程序的输出结果是( )。voidmain(void){inta[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],*q=p+2;printf(“%d\n”,*p+*q);}

A.16

B.10

C.8

D.6


参考答案

更多 “ 以下程序的输出结果是( )。voidmain(void){inta[10]={1,2,3,4,5,6,7,8,9,10},*p=printf(“%d\n”,*p+*q);} A.16B.10C.8D.6 ” 相关考题
考题 有以下程序void fun1(char *p){ char *q;q=p;while(*q!='\0'){ (*q)++; q++; ) }}main(){ char a[]={"Program"),*p;p=a[3];fun1(p);printf(" % s\n",a);}程序执行后的输出结果是A)ProhsbnB)PrphsbnC)ProgsbnD)Program

考题 有以下程序main(){inta[10]={1,2,3,4,5,6,7,8,9,10},*p=printf(“%d\n“,*p+*q);}程序运行后的输出结果是() A、16B、10C、8D、6

考题 有以下程序: void fun1(char*p) {char*q; q=P; while(*q!='\0') { (*q)++;q++;} } main() {char a[]={"Program"),*p; p=&a[3];funl(p);printf("%s\n",A); } 程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program

考题 (27)有以下程序#include stdio.hvoid f(int *p,int *q );main(){ int m=1,n=2,*r=m;f(r,n);printf(“%d,%d”,m,n);}void f(int *p,int *q){p=p+1;*q=*q+1;}程序运行后输出的结果是A)1,3 B)2,3 C)1,4 D)1,2

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

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

考题 有以下程序:void funl(char*p){ char*q;q=P;while(*q!=\O){(*q)++;q++;}}main{ char a[]={Program),*P;p=&a[3];funl(p);printf(%s\n,a);}程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program

考题 下列程序的输出结果是【 】。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);

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

考题 有以下程序: include void funl (char * p){char * q; q=p; while( *q! ='\0') } (*q) 有以下程序: #include <stdio.h>void funl (char * p){ char * q; q=p; while( *q! ='\0') } (*q) ++;q++;}mains( ){ char a[ ] = { "Program" } , * p; p = a[3]; fun1 (p); printf("% s \n" ,a);}程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program

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

考题 有以下程序 main ( ) int a[10]={1,2,3,4,5,6,7,8,9,10},*p=.a[3], *q=p+2; print f ("%d\n" , *p+*q); 程序运行后输出结查是A.16B.10C.8D.6

考题 有以下程序includevoid f(int *p,int *q);main(){ int m=1,n=2,*r=m;f(r, n 有以下程序 #include<stdio.h> void f(int *p,int *q); main() { int m=1,n=2,*r=m; f(r, n); printf("%d,%d",m,n); } void f(int*p,int*q) {p=p+1; *q=*q+1;) 程序运行后的输出结果是______。A.1,3B.2,3C.1,4D.1,2

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

考题 有下列程序: #includestdi0.h voidfun(int*a,int*b) {int*C; c=a;a=b;b=C; } voidmain( ) {intx=3,y=5,*p=&x,*q=&y; fun(p,q);printf("%d,%d,",*P,*q); fun(&x,&y);printf("%d,%d\n",*P,*q) } 程序运行后的输出结果是( )。A.3,5,5,3B.3,5,3,5C.5,3,3,5D.5,3,5,3

考题 若有如下程序: void s(char *m, int n) {*m=*m+3; n=n+3; printf("%c,%c,",*m,n); } main() {char p='b',q='B'; s(q,p); printf("%c,%c\n",p,q); } 则程序运行后的输出结果是( )A.E,e,b,EB.e,E,b,FC.E,e,e,ED.e,E,b,E

考题 有以下程序main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a[3],*q=p+2;printf("%d\n",*p+*q);}程序运行后的输出结果是

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

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

考题 有以下程序: main() {int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a[3],*q=p+2; printf("%d\n",*p+*q); }A.16B.10C.8D.6

考题 有以下程序includemain(){inta[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL; *q= 有以下程序 # include <stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL; *q=*(p+5); printf("%d %d \n",*p,*q); } 程序运行后的输出结果是A.运行后报错B.6 6C.6 11D.5 10

考题 以下程序的输出结果是( )。 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); }

考题 以下程序运行后的输出结果是() main()   {int a[10]={l,2,3,4,5,6,7,8,9,10},*p=&n[3], *q=p+2;    printf(”%d\n”,*p+*q);    }

考题 单选题有以下程序#include void fun1(char *p){  char *q;  q=p;  while(*q!='\0') {   (*q)++;   q++; } }main(){ char a[]={Program},*p;  p=a[3];  fun1(p);  printf(%s,a); }程序执行后的输出结果是(  )。A ProhsbnB PrphsbnC ProgsbnD Program

考题 填空题以下程序运行后的输出结果是() main()   {int a[10]={l,2,3,4,5,6,7,8,9,10},*p=&n[3], *q=p+2;    printf(”%d\n”,*p+*q);    }

考题 单选题有以下程序:#include void f(int*p,int*q);main(){ int m=1,n=2,*r=m; f(r,n); printf("%d,%d",m,n);}void f(int*p,int*q){ p=p+1; *q=*q+1;}程序运行后的输出结果是(  )。A 1,3B 2,3C 1,4D 1,2