• 2022-05-29
    下面程序的运行结果是( )main(){int x[5]={2,4,6,8,10},*p,**pp;p=x;pp=&p;printf(“%d”,*(p++));printf(“%3d\n”,**pp);}
    A: 4 4
    B: 24
    C: 2 2
    D: 4 6
  • B

    内容

    • 0

      以下程序的输出结果是() main( ) { int i , x[3][3]={9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1} , *p=&x[1][1] ; for(i=0 ; i<4 ; i+=2) printf("%d " , p[i]) ;

    • 1

      以下程序段的运行结果是__________。 int x&#91;3&#93;={1,2,3};int *p;p=x; for(p++;p<&x&#91;2&#93;;p++) printf("%d ",*p); A: 3 B: 2 C: 1 2 D: 2 3

    • 2

      以下程序的输出结果是()。#includevoidmain(){intx=1,y=2,z=3;structaa{inta;int*p;}s&#91;&#93;={4,&x,5,&y,6,&z};structaa*q=s+1;printf("%d\n",*(q–>p)++);} A: 1 B: 2 C: 3 D: 4

    • 3

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

    • 4

      39号元素钇的核外电子排布式是下列排布中的( ) A: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 4 d 1 5 s 2 B: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 5 s 2 5 p 1 C: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 4 d 2 5 s 1 D: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 5 s 2 5 p 1