Null object: Difference between revisions

Added Ada
(Created task with a few examples)
 
(Added Ada)
Line 3:
Show how to access null in your language by checking to see if an object is equivalent to the null object.
 
=={{header|Ada}}==
<Ada>with Ada.Text_Io;
 
if Object = null then
Ada.Text_Io.Put_line("object is null");
end if;</Ada>
 
=={{header|C}}==
Anonymous user