Quote:
I don't understand what should i do to solve this error.Please someone help me.
The error message means that your code is not C anymore when compiler reached the position of error.
Pay attention to semicolons, there are rules to where to put them.
Beautifiing code may help to read:
#include <stdio.h>
struct date {
int year;
int month;
int day;
};
void readDate(struct date * );
void readDate(struct date * dateptr) {
printf("\n Enter a new date:\n");
printf("year:");
scanf("%d", & ( * dateptr).year);
printf("month:");
scanf("%d", & ( * dateptr).month);
printf("day:");
scanf("%d", & ( * dateptr).day);
};
void printDate(struct date); {
printf("%d0%d%d\n", date.year, date.month, date.day);
};
int main(void) {
struct date today;
readDate( & today);
printDate(today);
return 0;
}