Skip to main content

Posts

Showing posts with the label Structure in C Programming

Structure In C Program #DOTC_Mdb

Structure in C Program.   Hello Everyone, Today we will discuss about Structure in C Program . Before starting please go through my previous blogs in archive folder for your reference. dheeraj60.blogspot.com Let’s Discuss about Structure in C : As we know in Array we define type of variable that can hold several data types of the same types. Whereas Structure is basically used to represent a record, in other word we can say structure is another user defined data type available in C that allows to combined data items of different kinds. Assume we need to store the data of students like student name, age, address, enrolment number etc. One way of doing this would be creating a different variable for each attribute, however when you need to store the data of multiple students then in that case, we need to create these several variables again for each student. This is bit complex but we can solve this problem easily by using structure. We can create a structure that has members f...