What is data structure ? Please explain definition about it. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

What is data structure ? Please explain definition about it.

Please give me a full explain about data structure.

9th Apr 2021, 3:53 AM
Karan - avatar
1 Antwort
+ 2
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.
12th Sep 2021, 6:24 PM
DavX - avatar