• 2021-04-14
    下面程序的输出结果应该是(). main() {int a[5]={2,4,6,8,10},*p,**k; p=a; k=&p; printf("%d",*(p++)); printf("%d\n",**k); }
  • 2 4

    内容

    • 0

      下列程序的输出结果是()。main(){intk=4,m=5,n=7;int*pk=&k,*pm=&m,*p;*(p=&n)=*pk*(*pm);printf(“%d”,n);}

    • 1

      Func(int a, int b) {static int m=0,I=2; I+=m+1; m=I+a+b; return(m); } main() { int k=4,m=1,p; p=Func(k,m); printf(“%d”,p); p=Func(k,m);printf(“%d”,p); }

    • 2

      下列程序的输出结果是()。main(){intk=4,m=5,n=7;int*pk=&k,*pm=&m,*p;*(p=&n)=*pk*(*pm);printf(“%d\n”,n);}

    • 3

      下列程序段的输出是_____。int *p, *q, k = 5 , j = 6 ;q = p = q ; q = printf("%d", *p);

    • 4

      下述程序的输出结果是 #include void main() { int a[5]={2,4,6,8,10}; int *p=a,**q=&p; printf("%d,",*(p++)); printf("%d",**q); } A.4,4 B.2,2 C.4,5 D.2,4