Data types-tccicomputercoaching.com A data type in a programming language is a set of data with values having predefined characteristics. Examples of data types are: integer, floating point unit number, character, string, and pointer. Usually, a limited number of such data types come built into a language. When we write source code, compiler have to convert that source code into machine code. The data used in source code have to be differentiating as digit, real number or text (alphabetical) for compiler information. So, data are categorized as per their type. These data type have size, as per this size they have allocated memory.
In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real, integer or Boolean, that determines the possible values for that type, the operations that can be done on values of that type, the meaning of the data, and the way values of that type can be stored. Common data types include: Integers Booleans Characters Floating-point numbers The type void The type specifier void indicates that no value is available.
Primitive Types:
A basic type is a data type provided by a programming language as a basic building block. Most languages allow more complicated composite types to be recursively constructed starting from basic types. A built-in type is a data type for which the programming language provides built-in support.