Example for a structure :
struct Employee
{
int Eid;
char ename[50];
char dname[30];
};
struct Employee
{
int Eid;
char ename[50];
char dname[30];
};
In the above example a structure is declared using a keyword struct followed by a structure name Employee and members namely Eid, ename, dname are declared with different data type.
Comments
Post a Comment