不解的问题!!
#include <stdio.h>#include <stdlib.h>
struct Date
{
int year;
int month;
int day;
};
struct Stu_Info
{
char no[9];
char name[20];
char sex;
struct Date birthday;
unsigned int classno;
float grade;
};
struct Stu_Info stu = {"20020306", "ZhangMing", 'M', {1986,12,10},1,90};
int main(void)
{
printf("no=%d\n",stu.no);
printf("name=%d\n",stu.name);
printf("sex=%d\n",stu.sex);
printf("birthday=%d\n",stu.birthday);
printf("classno=%d\n",stu.classno);
printf("grade=%d\n",stu.grade);
}
编译完输出为什么是这个结果?
no=134518688
name=134518697
sex=77
birthday=1986
grade=0