Skip to main content

Posts

Showing posts with the label Structure within another structure

Structure within another structure (Nested Structure) in C programming

     O ne structure can be nested within another structure in C. Let us consider an structure mark which has members subject and marks. This can be nested within another structure student. This can be done as follow.    struct mark{                char subject[20];                float marks;                 }; This structure can be nested within another structure as its member.   struct student {             char name[20];             int roll;             struct mark studentM;             char remark...