0 votes
140 views
in C programming by (98.9k points)
edited
Explain the concept of nested structure with suitable example.

1 Answer

0 votes
by (98.9k points)
selected by
 
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;
};

 

Related questions

0 votes
1 answer 107 views
0 votes
1 answer 487 views
0 votes
1 answer 188 views
asked May 27, 2022 in C programming by Doubtly (98.9k points)
+1 vote
0 answers 255 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

554 users

...