Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • thanks! one quick question. beside my question with memory leak. regarding the segment of the memory wise, if int i has allocated memory, the int i will be pointing the same section of memory at heap, right? However, since char* is pointer, even after memory is allocated it points to new memory location. Is my understanding correct? Commented Jun 1, 2017 at 8:33
  • @Dev_new you should ask another question Commented Jun 1, 2017 at 8:42