Assume that you are coding in a language that supports two kinds ofstorage bindi
ID: 3616800 • Letter: A
Question
Assume that you are coding in a language that supports two kinds ofstorage bindings: stack dynamic and explicit heap dynamic. For the following two questions, present realistic codeexamples, i.e., your code should illustrate a situation thatcould plausibly arise in a real program. Your examples need not becomplete, i.e., you may leave out or only sketch parts that are notimportant to your point.- Give a realistic code example where stack dynamic is moresuitable than explicit heap dynamic. Explain why stackdynamic is better for your example.
- Give a realistic code example where explicit heap dynamic ismore suitable than stack dynamic. Explain why explicit heapdynamic is better for your example.