1.

Represent a structure named student with types and give the advantages of using structure.

Answer»

struct student

{

int regno;

char name [25];

struct

{

short dd;

short mm;

short yy;

}

dob;

char sex;

};

the structure is a group of different types of logically related data referenced by a single name.



Discussion

No Comment Found