You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data is classified into data types that tell the compiler how the data is intended to be used.
Subjects
Code Foundations
Computer Science
Tags
Data Structures
Data Types
Types
CatalogContent
paths/code-foundations
paths/computer-science
Data is foundational in programming and is classified into different types to indicate how it can be interpreted, compiled, and used in software. For the most part, data types are categorized into two groups: primitive or composite values.
Primitive Data Types
Primitive data types are the building blocks for any variable or data structure in a program. They usually contain a single value such as a character, byte, or digit. A few examples of primitive types are listed below:
Sequences of characters surrounded by single quotes (''), double quotes (""), and/or backticks (``), depending on the language (e.g. "Codecademy is awesome! 🖥️⌨️" ).
Composite data types can be composed of multiple of the same or different primitive data types, sometimes referred to as members, elements, or items. The following are examples of well known composite types: