What is a data type?

A data type is an attribute of data which specifies the intended use of the data. A common data type using in programming is an integer or whole number. Computers process different data types so by declaring data types, compliers and interpreters know how to handle the data.

What are the different data types?

Character Single letter, digit, symbol or control code
StringA string of alphanumeric characters
BooleanOne of two values
IntegerWhole number values with no decimal part
RealNumbers with decimal or factorial part

Scroll to Top