What is data structure ? Please explain definition about it. | Sololearn: Learn to code for FREE!


What is data structure ? Please explain definition about it.

Please give me a full explain about data structure.

4/9/2021 3:53:56 AM


1 Answer

New Answer


Data structures offer a way to store and organise data. They also provide efficient access and grouping. For example, if you want to store the name and age of four people, you could create individual variables to hold the data. This would be time consuming and difficult to maintain. Using a data structure you can house this information under one structure. This makes it convenient to access/maintain and comes with added functionality like the ability to iterate (loop) over the data. There’s too much information to go into regarding data structures on here, unless you pick a specific language and structure. However most good books on the given language will give you indepth info on the pros/cons of each structure supported. Here are a few examples of data structures: Array, Vector (C++) Link List, Stack and Queues. You can also define your own data structures.