From TheBestLinks.com
In computer science, primitive types - the opposite of composite types - are datatypes with which values have a one-to-one correspondence to data objects stored in computer memory. They may be thought of as datatypes that are unable to be constructed from other datatypes.
Primitive types are also known as built-in types or basic types.
The actual range of primitive types that is available is dependent upon the specific programming language that is being used. For example, in C, strings are not implemented as a primitive datatype, whereas in other languages they may be.
Typical primitive types include:
Operations on primitive types are fastest; integer addition, for example, is nothing but addition at the machine level.
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.
Related links
Top visited
0 of
0 links
[no links posted yet]
>> place link >>
Discussion
Last posted
0 of
0 messages
[no messages posted yet]
>> post message >>
Watch
You can
add this article to your own "watchlist" and receive e-mail notification about all changes in this page.