0 votes 0 votes why second is not true please explain ?? garimanand asked Oct 19, 2018 • recategorized Oct 19, 2018 by Shaik Masthan garimanand 209 views answer comment Share Follow See 1 comment See all 1 1 comment reply Hemanth_13 commented Oct 19, 2018 reply Follow Share 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 votes 0 votes Please log in or register to add a comment.