How to free array memory in C language

http‮ww//:s‬w.lautturi.com
How to free array memory in C language

To free memory ,use the "free" function

char *arr = malloc(3 * sizeof(char));
strcpy(arr, "lautturi");
...
free(arr);
Created Time:2017-08-28 19:00:00  Author:lautturi