user331595
user331595

Reputation: 41

Pascal Simple Types

In Standard Pascal what are considered simple types? Are these the only types that can be returned from a function?

Upvotes: 2

Views: 436

Answers (2)

Mei Rusfandi
Mei Rusfandi

Reputation: 1

simple types in pascal,

integer for numeric,

real for floating point,

char for character,

boolean for the truth value, and

string for text

this is the basic types can use in pascal, and all of them can be return from function

Upvotes: 0

ax.
ax.

Reputation: 59917

according to the spec, simple types are integer, real, Boolean, char, enumerated ((red, yellow, green, blue, tartan)), and subrange (1..100). also according to the spec, functions can return only simple-type-identifier or (|) pointer-type-identifier.

Upvotes: 2

Related Questions