Inc (procedure)

Language:
Русский
English

 Inc (procedure)


Increments a variable.

Declaration

 procedure Inc(var X [ ; N: Longint ] );

Target

Windows, Real, Protected

Remarks

X is an ordinal-type variable or a variable of type PChar if the extended syntax is enabled and N is an integer-type expression. X is incremented by 1, or by N if N is specified; that is, Inc(X) corresponds to X := X + 1, and Inc(X, N) corresponds to [X := X + N.]

Inc generates optimized code and is especially useful in tight loops.

See Also

 Dec
 Pred
 Succ

Sample Code

Тэги: Inc
| G+
Код для вставки: :: :: :: ::
Поделиться: // //