Short integer

Short integer

In computer programming, a short integer is a data type that can represent a whole number which may take less storage, while having a smaller range, compared with a standard integer on the same machine.

In C, it is denoted by short. A short integer is often half the size of a standard integer, but this relation may not be correct. It is "often" a 16-bit integer, although it could be larger, for example, 64 bits. A conforming program can assume that it can safely store values between −(216-1) and 216-1, but it may not assume that the range isn't larger. In Java, a short is "always" a 16-bit integer.

A variable defined as a short integer in one programming language may be different in size to a similarly defined variable in another. In some languages this size is fixed across platforms, while in others it is machine dependent. In some languages this datatype does not exist at all.

Common sizes

In the Windows API, the datatype SHORT is defined as a 16-bit signed integer on all machines.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • short integer — trumpasis sveikasis skaičius statusas T sritis informatika apibrėžtis Sveikasis skaičius, kuriam skiriama mažiau vietos (skilčių) atmintyje ir dėl to jo dydis ribojamas labiau, negu įprasto skaičiaus. Paprastai kompiuteryje jam skiriama 16 bitų,… …   Enciklopedinis kompiuterijos žodynas

  • Short — may refer to: * Short (surname) * Holly Short, a fictional character from the Artemis Fowl series * Short circuit, an accidental connection between two nodes of an electrical circuit * Short (finance), stock trading status * Short film, a cinema… …   Wikipedia

  • Integer (computer science) — In computer science, an integer is a datum of integral data type, a data type which represents some finite subset of the mathematical integers. Integral data types may be of different sizes and may or may not be allowed to contain negative values …   Wikipedia

  • Integer (Datentyp) — Mit Integer (ˈɪnteːɡɐ oder ˈɪntɪdʒə, englisch für ganze Zahl von lat. numerus integer) wird in der Informatik ein Datentyp bezeichnet, der ganzzahlige Werte speichert. Der Wertebereich ist endlich. Berechnungen mit Integern sind in der Regel… …   Deutsch Wikipedia

  • Short (Datentyp) — Mit Integer (ˈɪntɪdʒə, englisch für ganze Zahl) wird in der Informatik ein Datentyp bezeichnet, der ganzzahlige Werte speichert. Der Wertebereich ist endlich. Berechnungen mit Integern sind in der Regel exakt. Lediglich ein Überlauf kann durch… …   Deutsch Wikipedia

  • integer — moralisch einwandfrei; unbestechlich; nicht käuflich; nicht korrupt * * * in|te|ger 〈Adj.〉 1. unversehrt, unberührt 2. rein, makellos, rechtschaffen, redlich ● ein integrer Charakter [lat., „unberührt, unversehrt“] * * * in|te|ger <Adj.; …grer …   Universal-Lexikon

  • Short division — In arithmetic, short division is a procedure which breaks down a division problem into a series of easier steps. As in all division problems, one number, called the dividend, is divided by another, called the divisor, producing a result called… …   Wikipedia

  • short — ● ►en n. m. ►TYPE Ou shortint . type de données correspondant souvent à l integer. Le short n est toutefois que rarement signé …   Dictionnaire d'informatique francophone

  • integer — ● ►en /in te geur/ n. m. ►TYPE entier. Nom de type désignant classiquement un entier codé sur deux octets et signé. L entier ainsi défini ne peut être que dans l intervalle [ 32768, 32767]. Syn. short, ou shortint …   Dictionnaire d'informatique francophone

  • Long integer — In computer science, a long integer is a data type that can represent a whole number which may have a larger range, while taking more storage, compared with a standard integer on the same machine.In C, it is denoted by long. A long integer is… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”