Coupon Accepted Successfully!



  • It is a collection of data under a single name.
  • Variable declared may be of any type like int, float etc..
  • It is a structure in a class declared with keyword struct and by default all members are public in a structure where all members are private by default in a class.
  • It can also be used as a class.​
Note: A structure is a group of data element grouped together under one name.
  • General format of declaring a structure

struct structure tag{




struct is the keyword to refer a structure
structure tag is the name of the structure
it is terminated with a semicolon.
  • Example

struct date {

short day;

short month;

short year;


date joining-date;

Joining-date will be having its element as day, month and year.

Test Your Skills Now!
Take a Quiz now
Reviewer Name