Declarations
A structure is declared by making a
blank template for a variable package. This is most easily seen with the help
of an example. The following statement is actually a declaration, so it belongs
with other declarations, either at the head of a program or at the start of a
block.
struct
PersonalData
{
char name[namesize];
char address[addresssize];
int YearOfBirth;
int MonthOfBirth;
int DayOfBirth;
};
0 comments:
Post a Comment