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:

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