nested structure and passing structure to function
nested structure and passing structure to function
Nested structure
To access the members of a nested structure, we use the dot operator (.). For
example, to access inner_member1 in the nested structure above, we would
use the following syntax:
struct outer_structure outer;
outer.inner.inner_member1 = value;
Program
Example: