1. Recall • What are the difference between stack and heap? • How to allocate memory in stack? And heap? • What are the difference between malloc() and calloc() 2.…