和数组不同,结构变量的名字并不是结构变量的地址,必须使⽤&运算符
#include<stdio.h>
struct date {
int month;
int day;
int year;
};
int main(int argc, char const *argv[])
{
struct date today;
today = (struct date){07, 31, 2014}
struct date *pDate = &today;
......
}