• 2022-05-29
    下程序的运行结果是:____,____,____。struct atype{ int m;char *pn;}tab[2]={{1,"ab"},{2,"cd"}},*p=tab;void main(){ printf("%d",tab[1].m);printf("%c",*p->;pn);printf("%c",*(++p)->;pn);}
  • 2#a#c

    内容

    • 0

      以下程序的输出结果为()。#include "stdio.h"struct{int x;char *c;}st[2]={{1,"ab"},{2,"cd"}},*p=st;main(){printf("%c\t",*p->c);printf("%s\n",(++p)->c); }

    • 1

      struct {int x; char *y;}tab={1,"ab"},*p=tab; 则:表达式p->;x的结果为【1】。

    • 2

      程序运行结果是。 # include int main (void) { int a = 1, *p; p = &a; printf ("a=%d,*p=%d,", a, *p); *p = 3; printf("a=%d,*p=%d", a, *p); return 0; }

    • 3

      有如下定义: struct { int x; char *y; }sa[2]={{1,"ab"},{2,"cd"}},*p=sa; 则:语句:printf("%s",(++p)->y); 的输出是 。

    • 4

      下列程序的输出结果是( )。void main( ){ int a [ ]={1,3,5,7,9,11,13}; int *p=a+1,*q=NULL; q=p+3; printf(“%d,%d\n”,*p,*q);}