Primitive type
In computer science, primitive types, the opposite of composite types, are datatypes with which valuess have a one-to-one correspondance to data objects stored in computer memory. They are also known as built-in types or basic types.Typical primitive types are:
- character with a range from 1 byte to 4 bytes
- integer with a range from 2 bytes to 64 bytes
- floating-point number with binary representation
- literal string where each byte represents one character.
- reference (a.k.a pointer, handle)
Most programming languages, even object-oriented programming languages, do not allow extending primitive types, partly because such extention makes little sense but mainly because it is hard to implement such function without sacrifing the simpliticy and efficiency. Composite types may be created using primitive types and/or other composite types.
This article is a stub. You can help Wikipedia by fixing it.






