This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: MALLOC

Part Number: CC2340R5

CC2340在宣告動態陣列,我使用例如

int *ptr;

ptr = (int*)malloc(sizeof(int)*20);

Compiler會出現錯誤,想問有沒有malloc正確的使用範例?