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

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

有以下程序: 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.16

B.10

C.8

D.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 ” 相关考题
考题 以下程序的输出结果是 【 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);}

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

考题 (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

考题 有以下程序: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

考题 有以下程序: 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=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);}程序运行后的输出结果是【 】。

考题 有以下程序 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

考题 有以下程序 include void fun(int*a,int*B) { int*c; c=a;a=b;b=c; } main() {int x=3 有以下程序 #include<stdio.h> void fun(int*a,int*B) { int*c; c=a;a=b;b=c; } main() { int x=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

考题 有以下程序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

考题 有以下程序 include main() {int a[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=N 有以下程序#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

考题 有以下程序includestdio.hint*f(int*p,int*q);main( ){int m=1,n=2,*r=m;r=f(r,stdio.hint*f(int*p,int*q);main( ){int m=1,n=2,*r=m;r=f(r,n);printf(”%d\n”,*r);}int-f(int*P,int*q)(return(*p*q)?p:q;)程序运行后的输出结果是______。

考题 若有以下程序main(){ int p=5,a=5; if(p=1!=0) printf("%d\n",p); else printf("%d\n",p+2);}程序执行后的输出结果是

考题 下面程序的运行结果是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);}

考题 有以下程序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 x,*p,**q; x=10; p=x; q=p; printf ("%d\n", **q); }A.10B.9C.8D.11

考题 以下程序的运行结果为______。 main() { int x,*p,**q; x=10;p=x;q=p; printf("%d\n",**q); }A.10B.9C.8D.11

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

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

考题 以下程序的执行结果是() main( )   {        int a, b, *p = a, *q = b;        a = 10;        b = 20;        *p = b;        *q = a;        printf(“a = %d, b = %d/n”, a, b);

考题 填空题以下程序的执行结果是() main( )   {        int a, b, *p = a, *q = b;        a = 10;        b = 20;        *p = b;        *q = a;        printf(“a = %d, b = %d/n”, a, b);

考题 填空题以下程序运行后的输出结果是() 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