what is difference between heep and stack memory give simple consept.
Try using our friend Google... Or go to Wikipedia - they have good articles on these subjects.
Also try reading your textbook.
With reference to ur query,
heap is also called as dynamic memory. When we are creating the memory using malloc(),calloc(),realloc() functions it will create the memory in heap area. It acts as a permanent memory if we are not deallocated the memory using free() funcion.
stack the no. of arguments we are passing in printf() statement that evaluation will takes place in stack area i.e., LIFO procedure.