• 2021-04-14
    2 定义以下结构体数组  structc intx    inty s 2 2 4 6 8  语句printf d s 0 y s 1 x 的结果是
  • 0

    内容

    • 0

      写一个文法G,使其语言为不以0开头的偶数集。 A: G[S]:S→AB|BA→AD|CB→2|4|6|8|0C→1|3|5||7|9|B B: G[S]:S→AB|BA→AD|CB→1|2|3|4|5|6|7|8|9C→2|4|6|8|0 C: G[S]:S→AB|BA→AD|CB→2|4|6|8|0C→1|2|3|4|5|6|7|8|9D→0|C D: G[S]:S→AB|BA→AD|DB→2|4|6|8|0D→1|2|3|4|5|6|7|8|9|0

    • 1

      有以下程序 struct s { intx,y; }data[2]={10,100,20,200}; main() { struct s *p=data; printf('%d',++(p->x)); } 程序运行后的输出结果是( )

    • 2

      下面正确的数组定义语句是()。 A: int y[1][4]={1,2,3,4,5}; B: float x[3][]={{1},{2},{3}}; C: long s[2][3]={{1},{1,2}}; D: double t[0][3]={0};

    • 3

      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

    • 4

      以下程序的运行结果是。 voidmain() {intx=2,y=2; if(x<0) y=0; elseif(x<100) y=10/x; else y=1; printf("%d\n",y); }