What is the difference between a data structure and a data type?

A data structure is a way of describing a certain way to organize peices of data so that operations and alogrithms can be more easily applied. For example tree type datastructures often allow for efficient searching algorithms.
A data type describes peices of data that all share a common property. For example an integer data type describes every integer that the computer can handle. Often when refering to data types in practice you will be referencing primitive data types which are the most basic data types of a programming language for example int, string or array. However in some languages like C you can define your own data types for example a data type of `person` could contain a string labled `name` and an integer called `age` which could be used to store the information for any person with an age and a name.

TB
Answered by Tom B. Computing tutor

29982 Views

See similar Computing GCSE tutors

Related Computing GCSE answers

All answers ▸

How do you convert a number from denary to hexadecimal?


Within the systems life cycle, describe what events might take place in the Analysis stage.


Calculate the file size in bits for a two minute sound recording that has used a sample rate of 1000 Hertz (Hz) and a sample resolution of 5 bits.


What is SQL? I know it's a 'query' language, but what does that mean?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning