填空题

以下程序运行后的输出结果是______。 struct NODE { int k; struct NODE *link; }; main() { struct NODE m[5],*p=n,*q=m+4; int i=5; while(p!=q) { p->k=--i;p++; q->k=i--;q--; } q->k=-i; for(i=0;i<5 ;i++)printf("%d",m[i].k); printf("\n"); }

【参考答案】

42124
<上一题 目录 下一题>
热门 试题

填空题
下面程序的运行结果是______。#include<stdio.h>main(){ union{ int i[2];long k;char c[4];}t,*s=&t;s->i[0]=0x12;s->i[1]=0x34;print f( %1x n ,s->k);}
单项选择题
已知学生记录描述为 struct student { int no; char name[20]; char sex; struct { int year; int month; int day; } birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。
A.year=1985;month=4;day=4;
B.birtyear=1985;birtmonth=4;birtday=4;
C.year=1985;month=4;day=4;
D.birtyear=1985;birtmonth=4;birth,day=4;
相关试题
  • 用typedef定义整型一维数组:typedef char...
  • 以下程序的运行结果是______。# in...
  • 有以下程序 struct stu { char num[...