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 (also called a pointer or handle)
Most programming languages, even object-oriented programming languages, do not allow extending primitive types, partly because such extension makes little sense but mainly because it is hard to implement such function without sacrificing the simplicity 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.