You only free dynamically allocated memory (e.g using malloc ) as it's allocated on the heap: char *arr = malloc(3 * sizeof(char)); strcpy(arr, ...
確定! 回上一頁