Deletion of b and a getting deleted own its own

how will deletion of a var that is get value from another function can delete the dynamic memory allocated in the function when we delete the var in main

Hey @tanishchaurasiacool can you mention any example for which you are querying for.

yes i mean the code showed in the video itself

Check this, this might solve your query
https://discuss.codingblocks.com/t/image-of-doubt-uploaded-here/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.