How structures are declared and initialized in C?

Generally, the initialization of the structure variable is done after the structure declaration . Just after structure declaration put the braces (i.e. {}) and inside it an equal sign (=) followed by the values must be in the order of members specified also each value must be separated by commas.

Sizin İçin Seçtik  Which is better to use union or struct?

Leave a Reply

Your email address will not be published. Required fields are marked *