Concept
How should a copied structure avoid sharing references?
ComputerScienceOne / Factory Functions
"Another common operation is to create a copy of a given structure. We will want to again ensure that everything is a deep copy so that the two structures are not sharing references. We can easily do this by reusing the functionality we just wrote in the factory"
Related Ideas
- How can you create a deep copy of a Student structure?ComputerScienceOne · To String Functions
- How do you pass an array of pointers to structures to a function?ComputerScienceOne · Passing Arrays of Structures
- How can an array of structure pointers make swapping structures more efficient?ComputerScienceOne · Arrays of Structures
- How do you call functions in C?ComputerScienceOne · Organizing Functions
- Why are functions useful in programming?ComputerScienceOne · Functions