Singly-linked list/Element definition: Difference between revisions

(Created task)
 
Line 2:
 
Define the data structure for a [[singly-linked list]] element. Said an element should contain a data member capable of holding a numeric value.
 
==[[Ada]]==
[[Category:Ada]]
 
type Link;
type Link_Access is access Link;
type Link is record
Next : Link_Access := null;
Data : Integer;
end record;
 
==[[C]]==
Anonymous user