Nested Structure

Page 1

Nested Structure In C | Programmerdouts programmerdouts.blogspot.com/2019/06/nested-structure-c.html

Nested Structure Nested structure is structure which has another structure as a member in that structure. A member of structure can be structure itself , this what we call as Nested Structure. Let's understand it by an example.

let's define a structure student with roll no , div and name but should be structure which will have first name , surname as it's attribute. Defining: structure name struct name { char first_name[20]; char surname_name[20]; };

Defining:Structure Student and using struture name as member in structure Student

1/8


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.