Translate

Tuesday, 30 October 2012

Structure


 structure is a collection of heterogeneous types of data elements. here by heterogeneous we mean elements of different data types. i.e. int, float, char etc.


Syntax:
  struct name
       {
             dataType-1 var;
             dataType-2 var;
             ...............
        };

  it is also called User Defined Data Type. In other words using keyword struct we can create our own data types.

No comments:

Post a Comment