0 votes 0 votes Please explain points in short, and intuition behind its working. HeadShot asked Dec 14, 2018 HeadShot 419 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments HeadShot commented Dec 14, 2018 reply Follow Share @Shubhanshu in your 2nd statement i.e S2, are we allocating dynamic memory for a function call ? then why its not in heap but in stack ? function calls are stored in stack i agree but i am not getting its relationship with dynamic allocation i.e "new". please explain. 0 votes 0 votes Shubhanshu commented Dec 14, 2018 reply Follow Share I mean to say that, suppose u call a function fun() and inside it's body we have declaration. int *p = new int(20); So through this we have proved that stack allocation support pointers. And through:- delete(p); We showed that we can deallocate space at run time too. 1 votes 1 votes MiNiPanda commented Dec 14, 2018 reply Follow Share https://gateoverflow.in/233652/test-series-compiler-design-doubts?show=233706#c233706 0 votes 0 votes Please log in or register to add a comment.