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.

Tom B. GCSE Computing tutor, GCSE Maths tutor, Mentoring HTML & CSS t...

11 months ago

Answered by Tom, a GCSE Computing tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£24 /hr

Michelangelo M.

Degree: MMath Mathematics with Placement (Masters) - Bath University

Subjects offered:Computing, Maths+ 4 more

Further Mathematics

“Mathematics student at the University of Bath, willing to help you love this subject and improve your grades.”

£20 /hr

Sara J.

Degree: Computing Science (Bachelors) - Glasgow University

Subjects offered:Computing, Maths+ 2 more

-Personal Statements-

“Undergraduate student at University of Glasgow with passion for Computing Science, Mathematics and Geography.”

£30 /hr

Rob H.

Degree: Computer Science (Bachelors) - Warwick University

Subjects offered:Computing, Physics+ 3 more

Further Mathematics

“Hi Folks!I'm Rob, and I'm a computer science student at the University of Warwick. I can't wait to start tutoring you all on computer science, maths, physics, and more! I've always had a passion for assisting other with their educati...”

About the author

Tom B.

Currently unavailable: for new students

Degree: Electronic Engineering (Masters) - York University

Subjects offered:Computing, Maths


“Hi I'm an Electronic Engineering student at the University of York.  I love using my technical skills in order to work on creative new projects.  My specialty is software programming, which I have enjoyed at an academic and proffesion...”

MyTutor guarantee

|  1 completed tutorial

You may also like...

Posts by Tom

Explain what a pseudo class selector is

Find the sum of all multiples of 2 less than 10000

Solve 4x + 6 = 3

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

Other GCSE Computing questions

What is stepwise refinement in top down programming?

What is batch processing?

What do 0s and 1s have anything to do with Boolean Logic?

How do you convert a number from denary to hexadecimal?

View GCSE Computing tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss