题目内容

下列用法正确的是_____。

A. typedef int INTEGER;INTEGER i,m;
B. typedef int char;char t,m;
C. typedef int[4] ARRAY;ARRAY n;
D. 以上都不对

查看答案
更多问题

以下程序的运行结果是____ 。#include struct node{int x;char c;};void func(struct node b);main(){static struct node a={10,'x'};func(a);printf("%d,%c\n",a.x,a.c);}void func(struct node b){b.x=20;b.c='x';}

A. 20,x
B. 10,x
C. x,10
D. x,20

以下程序的运行结果是______。#include main(){struct s{int n;int *m;} *p;int d[5]={10,20,30,40,50};struct s arr[5]={100,&d[0],200,&d[1],300,&d[2],400, &d[3],500,&d[4]};p=arr;printf("%d,",++p->n);printf("%d,",(++p)->n);printf("%d\n",++(*p->m));}

A. 100,200,20
B. 100,201,21
C. 101,201,21
D. 100,200,21

以下程序的运行结果是______。#include main(){int j;union{short int a;long b;unsigned char c;} m;m.b=0x12345678;printf("%x,",m.a);printf("%x\n",m.c);}

以下程序的运行结果是______ 。#include main(){struct person{char name[9];int age;};static struct person st[10]={"John",17,"Paul",19,"Mary",18,"Smith",16};printf("%c\n",st[2].name[0]);}

答案查题题库