Initializing Structure Variables in C
In this class, we will try to understand Initializing Structure Variables in C.
We have already discussed the basics of structures in our previous class.
Table of Contents
Initializing Structure Variables
The image below is the programming example for Initializing Structure Variables.
In the above example, we have declared two variables stu1 and stu2.
The structure variables are initialized within flower braces.
The comma separates the values for the members, and a comma separates each variable initialization.
Memory Visualization
The image below is the visualization of storing the values the structure variables values on the memory.