Deepcopy: Difference between revisions
m
→{{header|C}}: Remove vanity tags
m (→{{header|Kotlin}}: Corrected typo.) |
Thundergnat (talk | contribs) m (→{{header|C}}: Remove vanity tags) |
||
Line 118:
Structures without pointers can be copied like ''standard'' C variables such as int, float, char etc. The level of nesting is irrelevant. As the following implementation shows, a simple assignment is enough :
<lang C>
#include<stdio.h>
Line 284 ⟶ 282:
List a destroyed, List b is : 1,2,3,4,5,
</pre>
=={{header|C sharp}}==
<lang csharp>using System;
|