Why we need different data types in programming? In computer science, a data structure is a particular way of collecting and forming data in computer in such away so that we can operate on them efficiently. Every enterprise application uses various types of data structures in one or the other way. Computer programs are composed of two items: Data and Operations on that Data. Because, at their heart, computers are simple devices, they can only represent very simple pieces of information.
The data types can simply be described as: int, booleans, characters, arrays, structures and so on. In simple language, we can describe Data Structures are structures programmed to store data, ordered data, so that we can perform different operations easily. It represents the knowledge of data to be organized in memory occupation. For example if we store data as name “Mira” and Percentage “75.5”, then record data name is string type and percentage is float type. Record stored is student name with percentage. We can also store with Roll-No (Integer).