Exercises in this lecture              Go to the slide, where this exercise belongs -- Keyboard shortcut: 'u'  

Exercise 1.5
Dynamic allocation of persons and addresses

This is a continuation of an earlier exercise about structs (and pointer to structs).

We have on an earlier slides discussed struct person and struct address. More specifically, struct address appear as the location field in struct person.

Write a version of the program that allocates both persons and addresses dynamically. A person 'object' have a pointer to an address 'object'. And the rest of the program should operate on person pointers and address pointers instead on structs with value semantics.

There is no solution to this exercise