int *ptr; int ptr; ptr=(*int) malloc(3*sizeof(int));. *ptr=12;. /* 將ptr所指向的第1個記憶空間設值為12 */;. 將第個記憶空間設值為. *(ptr+1)=35;.
確定! 回上一頁