There are certain types of containers that are used to store data. These containers are nothing but data structures. These containers have different properties associated with them, which are used to store, organize, and manipulate the data stored in them. There can be two types of data structures based on how they allocate the data. Linear data structures like arrays and linked lists and dynamic data structures like trees and graphs.