Quick Test 20: Pointers

1. How to declare a pointer to a word?

Var a: ^word; 
Var a: word;
Var a: @word;
Var a: word^;

2. How to attribute the address of variable x to pointer p?

Depends on the type of x.
p := ^x;
p := @x;
p := x^;

Var b: array[1..20] of ^integer;
3. How to assign a value of 0 to the first integer of b?

4. What means p := NIL?

The contents address p will be 0.
The pointer p will point to nothing.
The pointer p will point to address 0.