ExplanationIn the above example structure name, b_date and data are defined. The structure
data have member variables of type name and b_date structures respectively. Therefore, this type of
structure is called as nested structure. The variable rl is a variable of type data structure. Using
scanf () statement the program reads data from keyboard. In the same way, using printf ()
statement entered data is displayed on the screen. Here, the dot (.)operator is used twice as we
are accessing variables of structure which are inside the another structure.
1
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.