Singly-linked list/Element definition: Difference between revisions
Content added Content deleted
(→{{header|C sharp|C#}}: Renamed members to follow .NET convention; added generic version and unsafe version) |
(→{{header|C sharp|C#}}: Removed erroneous ref modifier from unsafe version) |
||
Line 370: | Line 370: | ||
}</lang> |
}</lang> |
||
The most C-like possible version is basically C |
The most C-like possible version is basically C. |
||
<lang csharp>unsafe |
<lang csharp>unsafe struct link { |
||
public link* next; |
public link* next; |
||
public int data; |
public int data; |