0 votes
148 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 114 views
0 votes
1 answer 496 views
0 votes
1 answer 195 views
asked May 27, 2022 in C programming by Doubtly (98.9k points)
+1 vote
0 answers 267 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

563 users

...