The inc procedure

Description

The inc procedure increments the value stored in a variable.

Parameter

  1. The first parameter is a reference to the variable of ordinal type whose value is to be incremented.
  2. The second parameter is an expression of integral type, and is the value by which the variable is to be incremented. If this parameter is not supplied then the variable is incremented by one.

Example

   inc(x)      decrements the variable "x" by 1
   inc(x, 10)  decrements the variable "x" by 10

Portability

Operating Systems: All
Standard Pascal: No