0 0 votes why second is not true please explain ?? Data Structures + – garimanand 414 views answer comment Share Follow Print See 1 comment 1 1 comment reply Hemanth_13 commented Oct 19, 2018 reply Follow flag Not getting this.. But giving a try: "Yes, the pointer is allocated on the stack but the object that pointer points to is allocated on the heap."--> Statement from S.O. So pointer variables are on stack and their references are on heap. So we can deallocate them. Ex: you have written a function where you have created an object dynamically then by convention you have to deallocate that before the activation record is popped if there aren't any further references needed. 0 0 replyShare Please log in or register to add a comment.