Primitive Type

In computer science, primitive types, as distinct from composite types - are datatypes provided by a programming language as basic building blocks. Depending on the language and its implementation, primitive types may or may not have a one-to-one correspondence with objects in the computer's memory. 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 modern dialects of Basic they are primitives. Typical primitive types include: More sophisticated types include: One usually expect operations on primitive types to be the fastest language contructs there are. Integer addition, for example, can be performed as a single machine instruction, and some processors offer specific instructions to process sequences of characters with a single instruction. In fact, in C/C++, int type is defined to have the same word length as that of the integer in the machine architecture. That is, int in a 32-bit cpu is 32-bit bytes-long. Most languages do not allow the behaviour or capabilities of primitive types to be modified by programs. Exceptions include Smalltalk, which permits primitive datatypes to be extended within a program, adding to the operations that can be performed on them or even redefining the built-in operations.

 

<< PreviousWord BrowserNext >>
su tseng chang
jmthund
milwaukee mustangs
count of flanders
minor civil division
hugh grosvenor, 1st duke of westminster
king, ontario
taipei county
reginald dyer
toc protocol
karl king
sigismund of burgundy
rabbiteye blueberry
one and only one
popping
richard johnson
billy rose
high energy transient explorer
megalopolis, greece
conure
premier of ontario
rose perica mofford
fife symington
robert brown (botanist)
gennadiy nikonov
linnean society of london
first kid
milton, new south wales
music of bolivia
the monkey's paw
music of chile
music of peru
eastern silesia
married love
ulladulla
anne bradstreet
french congo
speaker of the australian house of representatives
bibliotheca alexandrina
list of fictional airborne castles
japanese language and computers
rakiura national park
bergedorf
moon hoax