Contents | Prev | Next

7.2.61 The succ function

Description

The succ returns the ordinal value that is the successor of the parameter passed to it. It is an error if the parameter does not have a succssor. The type of the value returned by this function is always the same as the type of the parameter.

Parameter

The succ function's only parameter is an expression of ordinal type.

Example

   succ(false)   returns  true
   succ(21)      returns  22
   succ('A')     returns  'B' (assuming the ASCII or ANSI character set)

Portability

Operating Systems: All
Standard Pascal: Yes

Contents | Prev | Next