Sunday, November 9, 2014



Structure in C

A Structure in C is heterogeneous user defined data type. A structure may contain different data types. It groups variables into a single entity.

Example 1:

 
struct Student{
   char name[25];
   int age;
   float height, weight;
}; 
Note:
Initially this structure declaration does not allocate in the memory.