Stack Memory and Heap Memory

Earlier when we were discussing dynamic memory allocation, we had an experiment that crashed the program when eight megabytes of memory was used up unless we allocated that memory through malloc. To understand what was happening there, please watch the following video: https://www.youtube.com/watch?v=_8-ht2AKyH4

After watching this video, you should understand what a stack overflow error is.