CS3240: Data Structures and Algorithms

Question: Passing Parameters

1. What will happen when we pass by value a Class that contains dynamic memory. For example, consider our stack class implemented with a linked list:

 

 

 

2) What is the potential problem with the issue in number 1?

 

 

A
© Lynne Grewe