Something wrong with the code or is it working fine ?
@srestha,mam
your first comment
there is a problem I think, memory is not deallocated
memory successfully de-allocated.
in case if we forgot to free pointer, then there will be dangling pointer error
there is no concept of free the pointer.... we have re-initialize it, if we want to use it again
64.3k questions
77.9k answers
244k comments
80.0k users