Structure In C Programming – Structure of C Program | Data Structures In C | Data Structure using C | Types Structure in C | Structure In C Examples

Structure In C Programming – Structure of C Program | Data Structures In C | Data Structure using C | Types Structure in C | Structure In C Examples

Structure in C Programming

A struct in the C programming dialect (and numerous subordinates) is a composite information sort statement that characterizes a physically assembled rundown of factors to be put under one name in a piece of memory, enabling the diverse factors to be gotten to through a solitary pointer, or the struct proclaimed name which restores a similar address. The struct can contain numerous other unpredictable and basic information sorts in an affiliation, so is a characteristic arranging sort for records like the blended information sorts in arrangements of registry passages perusing a hard drive (document length, name, augmentation, physical (chamber, circle, head lists) address, and so on.), or other blended record sort (tolerant names, address, phone… protection codes, adjust, and so on.).

The C struct specifically references an adjoining piece of physical memory, generally delimited (estimated) by word-length limits. It compares to the comparably named highlight accessible in a few constructing agents for Intel processors. Dialect usage that could use half-word or byte limits (giving denser pressing, utilizing less memory) were viewed as cutting edge in the mid-eighties. Being a square of coterminous memory, each field inside a struct situated at a specific settled counterbalance from the begin. As an outline, numerous BASIC translators once handled a string information struct association with one esteem recording string length, one ordering (cursor estimation of) the past line, one indicating the string information.

Structure Declaration

The general punctuation for a struct statement in C is:

struct tag_name {

sort member1;

sort member2;

/* announce the same number of individuals as wanted, however the whole structure measure must be known to the compiler. */


Here tag_name is discretionary in a few settings.

Such a struct affirmation may likewise show up with regards to a typedef announcement of a sort nom de plume or the statement or meaning of a variable


Thanks for reading this post and don’t forget to share it.and keep visits for more updates

About Ashok.cse

Hi, I'm currently studying for the Bachelor of Technology In Computer Science from Rajasthan Technical University. I am the web developer with 3+ years of experience. my range of developer services including creating the design for new apps and web platforms or building UI design for mobile, tablets or desktops. making UX designs wireframes and layouts concepts and redesigns websites are adapting to mobile and responsive design. I have worked with many clients. I am working professionally with WordPress And Adobe tools.

View all posts by Ashok.cse →

Leave a Reply

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