[next] [prev] [prev-tail] [tail] [up]

#### SizeOf

Declaration:
  Function SizeOf (X : Any Type) : Longint;
Description:
  SizeOf returns the size, in bytes, of any variable or type-identifier.

  Remark: This isn’t really a RTL function. Its result is calculated at compile-time, and hard-coded in the executable.

Errors:
  None.
See also:
  Addr (451)

Listing: refex/ex63.pp

Program Example63;
{ Program to demonstrate the SizeOf function. }
Var
I : Longint;
S : String [10];
begin
Writeln (SizeOf(I)); { Prints 4 }
Writeln (SizeOf(S)); { Prints 11 }
end.

[next] [prev] [prev-tail] [front] [up]