New answers tagged

0 votes

p is assigned a memory first but when create family is called again, isnt the last memory lost as now p points at a new chunk of memory?

No because you arent calling create family against p you are calling it to assign to parent0 and parent1 then you are assigning those pointers into the parents array of p. presumably create_family is ...
UpAndAdam's user avatar
  • 526

Top 50 recent answers are included