Array of Structures

Explore an array of structures and its basic syntax with the help of an interactive example.

More records, more printf()s

One limitation of using structures to store data is that as the number of records increase, the number of printf( )s required to access elements of each record also increases. The fundamental problem is that it doesn’t scale. If you wanted to store 100 different struct variables, you’d need 100 different variable names.

See the code given below!

Get hands-on with 1200+ tech skills courses.