Explain the concept of nested structure with suitable example.
Explain the concept of nested structure with suitable example.
Best answer
Structure written inside another structure is called as nesting of two structures. Nested Structures are allowed in C Programming Language. We can write one Structure inside another structure as member of another structure
Example syntax
struct date
{
int date;
int month;
int year;
};
struct Employee
{
char ename[20];
int ssn;
float salary;
struct date doj;
};Log in or create a free account to answer this question.