Thursday, May 23, 2013

What is structure??

A structure is an object that consist of named members, that may be of different data types. The members have public access


Concept:  A structure provides a means of grouping variables under a single name for ease of use and handling of the same. The structure can be nested to develop complex hierarchies. Structure may be copied to and assigned value like other variables. They are also  useful in passing groups of logically related data into function.


Syntax:-

struct stucture_name
{
        ......
        .......     // list of data types and variable  name
       .......
};



No comments:

Post a Comment