Write an Pascal Program For NIL Pointers - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Saturday, September 23, 2017

Write an Pascal Program For NIL Pointers

 Pascal  NIL Pointers

Program:
program exPointers;
var
number: integer;
iptr: ^integer;
y: ^word;

begin
iptr := nil;
y := addr(iptr);

writeln('the vaule of iptr is ', y^);
end.

Output:

The value of ptr is 0

No comments:

Post a Comment