Jump to content

Deepcopy: Difference between revisions

40 bytes removed ,  5 years ago
m
→‎Structures with pointers: Remove vanity tags
m (→‎{{header|C}}: Remove vanity tags)
m (→‎Structures with pointers: Remove vanity tags)
Line 184:
Structures with pointers which are usually used to represent data structures such as Linked lists, Stacks, Trees, Graphs etc. have to be copied element by element. A simple assignment as in the above example will not be a copy at all. It will be two pointers pointing towards the same memory location.
<lang C>
/*Abhishek Ghosh, 15th November 2017*/
 
#include<stdlib.h>
#include<stdio.h>
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.