Difference between revisions of "Pointer"

From Lazarus wiki
Jump to navigationJump to search
Line 5: Line 5:
 
Pointers can be declared in several ways:
 
Pointers can be declared in several ways:
 
  p: Pointer;  // direct use of pointer-type
 
  p: Pointer;  // direct use of pointer-type
  p: ^Longint; // usage of pointer-to-type notation.
+
  pL: ^Longint; // usage of pointer-to-type notation.
  
 
See also:
 
See also:

Revision as of 13:28, 11 October 2013

Deutsch (de) English (en) suomi (fi) français (fr) русский (ru)

A pointer is a data type wich contains a reference/pointer to the memory address of the variable it points to.

Pointers can be declared in several ways:

p: Pointer;  // direct use of pointer-type
pL: ^Longint; // usage of pointer-to-type notation.

See also:


navigation bar: data types
simple data types

boolean byte cardinal char currency double dword extended int8 int16 int32 int64 integer longint real shortint single smallint pointer qword word

complex data types

array class object record set string shortstring