Do not use this tag to refer to free software.
Could somebody tell me the difference between: int *p; p=(int*)malloc(10*sizeof(int)); free(p); or int *p; p=(…
c pointers freeCan a call to free() fail in any way? For example: free(NULL);
c memory-management freeThe code is as follow : #include <stdlib.h> int num = 3; // Static external variable int *ptr = # int …
c free scope static-variables dynamic-allocationSo I don't really know how to put the title this time. First of all I'd like to say that …
c memory-management free reallocI know that my questions are very simple but googleing them didn't get me any useful results... They'r probably too …
c pointers int free command-line-argumentsShould I free all my mallocated memory when I am exiting program in the due of error? something = (char**) malloc (…
c malloc free dynamic-allocationThere are many questions on this website regarding freeing pointers after use and, further, setting them to NULL. Arguments are …
c pointers freeI have a class as follows struct CliHandler { CliHandler(int argc, char** argv); ~CliHandler(); int doWork(); int argc_; char** argv_; …
c++ malloc free heap-corruption