WishWiki

Data Type

A data type is a classification that tells a computer how to interpret and manipulate a piece of information. Every Variable (general) in a program has a data type—it's the blueprint that determines what operations are possible, how much memory to reserve, and what values are legitimate.

Data types range from simple to complex. Primitive types include integers (whole numbers), floating-point numbers (decimals), booleans (true/false), and characters. Composite types bundle primitives together: arrays, records, and objects. Some languages support abstract data types, user-defined structures with custom rules. Others feature generic types, which work with any data type you plug in.

The choice of data type matters deeply. Using the wrong one wastes memory, corrupts calculations, or crashes programs. Computational Complexity often hinges on data structure design. Some languages enforce strict type checking; others are permissive, inferring types automatically.

Type systems are philosophical too—they encode assumptions about what data means. A number might represent a score, a temperature, or a count, and each context demands different operations. This semantic layer connects abstract computation to modeling the real world.

Related

Programming Language, Memory (computing), Algorithm, Object-oriented programming, Database

Wishing…
your wish is being written

✨ Wish for a new page

👁 Wish for another view of this page

Sign in to WishWiki

Keep your wishes together, see your activity — and later, get your own private wiki space.

⏱ Page history