When should I use struct in C?

Structs are best suited for small data structures that contain primarily data that is not intended to be modified after the struct is created . 5) A struct is a value type. If you assign a struct to a new variable, the new variable will contain a copy of the original.

Sizin İçin Seçtik  What is typedef structure in C?

Leave a Reply

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