Deepcopy: Difference between revisions

Content added Content deleted
m (→‎{{header|Kotlin}}: Corrected typo.)
m (→‎{{header|C}}: Remove vanity tags)
Line 118: 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 :
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>
<lang C>
/*Abhishek Ghosh, 15th November 2017*/

#include<stdio.h>
#include<stdio.h>


Line 284: Line 282:
List a destroyed, List b is : 1,2,3,4,5,
List a destroyed, List b is : 1,2,3,4,5,
</pre>
</pre>

=={{header|C sharp}}==
=={{header|C sharp}}==
<lang csharp>using System;
<lang csharp>using System;