Data Types

Algorithms + Data Structures = Programs

Data types and data structure are central to computer science and to programming.

Data structures form a hierarchy

As you learn more about programming, you'll discover that particular data structures can be extremely useful and are worth studying in their own right.

Example: strings

A good example is the string.

A string in C is represented internally as an array of characters, which is in turn represented as a pointer to the first address in the array.

But a string also has an abstract behavior that transcends its representation.

So regardless of its implementation, a string is a group of characters that are thought of as a single object.

The operations on strings include :

We say that a string is an abstract data type.