Search



Saturday, 19 September 2015

Structure Theory

Basically, a Structure is a collection of different data items, that are stored under a common name.The structure includes struct which is it's data type.
A struct in the C programming language (and many derivatives) is a complex data type declaration that defines a physically grouped list of variables to be placed under one name in a block of memory, allowing the different variables to be accessed via a single pointer, or the struct declared name which returns the same address. The struct can contain many other complex and simple data types in an association, so is a natural organizing type for records like the mixed data types in lists of directory entries reading a hard drive (file length, name, extension, physical (cylinder, disk, head indexes) address, etc.), or other mixed record type (patient names, address, telephone... insurance codes, balance, etc.).

=>The Syntax of Structure is:
      struct structure_name
          {
                  structure element1;
                  structure element2;
                  ……………………
          };

No comments:

Post a Comment

Guys if you think something is wrong or should be edit than please do comment.