We must cast the returned pointer since malloc() returns a pointer of type void . Example 1. #include<stdlib.h> int *p1; p1 = (int *)malloc(sizeof(int)); ...
確定! 回上一頁