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 can be declared in C++ using the following syntax: struct type_name {