da_year-x.da_year);/*输出两个年份的差值,2006—1972*/ } _ 自考,成考学习,学历提升,考前押密,考前答题,选笔果题库就对了">
阅读下列程序,写出程序运行的输出结果(设当前系统日期为2006年8月4日)。
#include
void main()
{stmctdate x={1972,10,3};
stmctdate y,*P=&y;
getdate(P);/*获取系统日期*/
printf("%d\n",P->da_year-x.da_year);/*输出两个年份的差值,2006—1972*/
}