First, lets view the question...
(i) Declare a tagged structure called DATE which consists of the following members:
month (eg. 12)
day (eg. 5)
year (eg. 2001)
(ii) Using typedef, declare a structure called STUDENT with the following members:
StudentName (eg. Wilson Tan Wing Soon)
ICNo (eg. 890225-06-0025)
BirthDate (eg. as in (i) shown above)
__________________________________________________ _____
My coding so far....
Code:#include <stdio.h> #include <stdlib.h> struct DATE { int month; int day; int year; } typedef struct{ char name[30]; char ic[30]; DATE date; } STUDENT; int main(void) { return 0; }
__________________________________________________
Help me ~ what mean by (ii) BirthDate? It say shown above?



3Likes
LinkBack URL
About LinkBacks



