填空题

指针变量p和数组a的说明如下:
int*a[3]="aa","bb","cc",**p;
执行语句p=&a[2];后,*p指向的字符串是______。

【参考答案】

cc。
<上一题 目录 下一题>
热门 试题

填空题
以下程序的运行结果是______。 struct Node int x; char ch; ; fun(struct Node*sn) static k=1; sn->x=20; Sn->ch=’a’+k++; main() int i; static struct Node st=10,’a’; for(i=0;i<2;i++) fun(&st); printf( %d,%c n ,st.x,st.ch);
填空题
分析下列程序: main() int x=1,y=0,a=0,b=0; switch(a) case 1:switch(b) case 0:x++; case 1:y++;break; case 2:x++;y++;break; printf( x=%d,y=%d n ,x,y); 运行程序的输出结果是______。
相关试题
  • 下面程序把从终端读入的文本(用#作为文本...
  • 以下程序的功能是:从键盘输入一字符串,要...
  • 以下程序的运行结果是______。 stru...
  • 下列程序的输出结果是______。 main...
  • 以下程序的输出结果是______。 main...