17.
#include <stdio.h>
struct date
{
int year;
int month;
int day;
};
void func(struct date p)
{
p.year = 2000;
p.month = 5;
p.day = 22;
}
main()
{
struct date d;
d.year = 1999;
d.month = 4;
d.day = 23;
printf("%d,%d,%d\n", d.year, d.month, d.day);
func(d);
printf("%d,%d,%d\n", d.year, d.month, d.day);
}
則程序運行結果是: