在C语言中共用体的成员可否是结构体?
在C语言中共用体的成员可否是结构体?
#include<stdio.h> union date{ //定义共用体 struct DATE{ int year; int month; int day; }today; float a; char p[30]; }; int main(){ union date E = {2020,03,30}; printf("%d-%d-%d\n", E.today.year, E.today.month, E.today.day); return 0; }