下面程序main(){ int a[ ]={1,2,3,4,5,6,7,8,9,0},*p;p=a; printf("%dn",*p+1); }的输出结果是A.0B.1C.2D.输出错误
下面程序main(){ int a[ ]={1,2,3,4,5,6,7,8,9,0},*p;p=a; printf("%dn",*p+1); }的输出结果是
A.0
B.1
C.2
D.输出错误
参考答案和解析
[1, 2, 2, 3, 5]
相关考题:
下面程序的输出结果是#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
(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
下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main() 下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5
下面程序的输出结果是()。includemain(){int a[]={1,2,3,4,5,6,7,8,7,10},*p;p=a;print 下面程序的输出结果是( )。 #include<stdio.h> main() {int a[]={1,2,3,4,5,6,7,8,7,10},*p; p=a; printf("%d\n",*p+8); }A.0B.1C.10D.9
下述程序的输出结果是()。includevoid main(){int a[5]={1,2,3,4,5};int *p=a,**q=p 下述程序的输出结果是( )。 #include<stdio.h> void main() {int a[5]={1,2,3,4,5}; int *p=a,**q=&p; printf("%d,",*(p++)); printf("%d",**q);}A.2,2B.1,1C.3,4D.1,2
下面程序的输出结果是______。 include main() {char *p[]="BOOL","OPK","H","SP"};int 下面程序的输出结果是______。 #include<stdio.h> main() { char *p[]="BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB
下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int 下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5
以下程序的输出结果是【】。includevoid main() {int *p;p=new int;*p=200;cout 以下程序的输出结果是【 】。include<iostream. h>void main() {int *p;p=new int;*p=200;cout<<*p;delete p;}
以下程序的正确运行结果是( )。int d=1;fun(int p){ int d=5;d+=p++;printf("%d,d);}main(){ int a=3;fun(a);d+=a++;printf("%dn,d);} A.84B.99C.95D.44
设程序如下:includeusing namespace std;int main(){int **p,*q,r=10;q=r;p= int main() { int **p,*q,r=10; q=r; p=q; cout<<**p+1<<end1; return 0; } 以上程序的输出结果是( )A. p的地址B. r的地址C.11D.运行错误
下列程序的输出结果是()。includevoid main().{int b[6]={2,4,6,8,10,12}; int*p=b,**q 下列程序的输出结果是( )。 #include<stdio.h> void main(). { int b[6]={2,4,6,8,10,12}; int*p=b,**q=p; printf("%d", *(p++)); printf("%d,",**q); }A.4,4B.2,2C.4,5D.2,4
下面程序的输出结果是() include main( ) { int i,a[ ]={2,4,6,8}; int * p=a; 下面程序的输出结果是 ( ) # include<stdio.h> main( ) { int i,a[ ]={2,4,6,8}; int * p=a; for(i=0;i<4;i+ +)a[i]=* p+ +; printf(*%d\n",a[2]); }A.6B.8C.4D.2
下面的程序输出结果是 ______。 #define r 16 #if r==16 void p(int a) { printf("%x",a) ; } #else void p(int a) { printf("%d",a) ; } #endif main() { p(32); }A.32B.20C.编译时错误D.运行时错误
下面程序的输出结果是______。includemain(){char*p[]={"BOOL","OPK","H","SP"}; int i 下面程序的输出结果是______。#include<stdio.h>main(){ char*p[]={"BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n");}A.SOB.SPC.SPOPKD.SHOB
下面程序的输出结果是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
有以下程序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
有以下程序 #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
下列程序舶输出结果是【 】。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
有以下程序:include main( ){int a[ ] = { 1,2,3,4,5,6,7,8,9,0} , * p;for(p =a;p 有以下程序:#include <stdio. h>main( ){ int a[ ] = { 1,2,3,4,5,6,7,8,9,0} , * p; for(p =a;p<a+10;p++) printf("%d," , *p); }程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,0,B.2,3,4,5,6,7,8,9,10,1,C.0,1,2,3,4,5,6,7,8,9,D.1,1,1,1,1,1,1,1,1,1,
下面程序的输出结果是______。 main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a;ptintf("%d\n",*p+9); }A.0B.1C.10D.9
下列程序的输出结果是()。 include void main() {int b[6]- 下列程序的输出结果是( )。#include<stdio.h>void main(){ int b[6]-<2,4,6,8,10,12};int*p=b,**q=p;printf("%d",*(p++));printf("%d,",**q);}A.4,4B.2,2C.4,5D.2,4
下面程序运行后的输出结果是______。 fut(int,*s,int P[2][3]) { **s=p[1][1]; } main() { int a[2][3]={1,3,5,7,9,11},*p; p=(int *)malloc(sizeof(int)); fut(p,a) ; printf("%d\n",*p); }A.1B.7C.9D.11
单选题有以下程序:#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;}程序运行后的输出结果是( )。A1,3B2,3C1,4D1,2