banner

What is Data Structure?


    A data structure is a group of data elements grouped together under one name. These data elements, known as members, can have different types and different lengths. Data structures are declared in C++ using the following syntax:

struct structure_name{
member_type1 member_name1;
member_type2 member_name2;
member_type3 member_name3;
.
.
} object_names;