Write a C Program to understand arrays within structures

By | March 20, 2017

C Program to understand arrays within structures


Write a C Program to understand arrays within structures. Here’s a Simple Program to understand arrays within structures in C Programming Language.


Arrays within Structures


Sometimes, arrays may be the member within structure, this is known as arrays within structure. Accessing arrays within structure is similar to accessing other members.

When you find yourself to store a string value, then you have to go for array within structure. because your name comes under character data type alone, thus array is capable of storing data of same data type.

As we know, structure is collection of different data type. Like normal data type, It can also store an array as well.


Syntax for array within structure



Below is the source code for C Program to understand arrays within structures which is successfully compiled and run on Windows System to produce desired output as shown below :


SOURCE CODE : :



OUTPUT  : :



If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach upto you in the short interval.


Thanks for reading the post.

Leave a Reply