A: 4 4
B: 24
C: 2 2
D: 4 6
举一反三
- 下面程序的运行结果是。[br][/br]main ( )[br][/br]{ int x[5]={2,4,6,8,10}, *p, **pp ;[br][/br]p=x , pp = &p ;[br][/br]printf(“%d”,*(p++));[br][/br]printf(“%3d”,**pp);[br][/br]} A: 4 4 B: 2 4 C: 2 2 D: 4 6
- 下面程序的运行结果是 main() {int x[5]={2,4,6,8,10},*p,**pp; p=x; pp=&p; printf(“%d”,*(p++)); printf(“%3d ”,**pp);}
- 分析以下程序的运行结果#include <;stdio.h>;main( ){ int a[ ]={1, 2, 3, 4, 5, 6};int x, y, *p;p = &a[0];x = *(p+2);y = *(p+4);printf(“*p=%d, x=%d, y=%d\n”, *p, x, y);}
- #include [stdio.h]main( ){ int a[ ]={1, 2, 3, 4, 5, 6}; int x, y, *p; p = &a[0]; x = *(p+2); y = *(p+4); printf(“*p=%d, x=%d, y=%d\n”, *p, x, y);} 运行结果为_____________
- 下列程序的运行结果是( )。 #include int main() { int a[5]={1,2,3,4,5},*p,**pp; p=a; pp=&p; printf("%d ",*(p+3)); printf("%d",**pp); return 0; }
内容
- 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[3]={1,2,3};int *p;p=x; for(p++;p<&x[2];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[]={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