{ char arr[4]; ... strncpy(arr, ptr, sizeof("abc")); // Copy the string "abc" into the array arr ... To allocate space for an array in memory you use.
確定! 回上一頁