以下程式利用函數realloc() 擴充記憶體空間 #include <stdlib.h> #include <stdio.h> #include <string.h> int main(void) { char *ptr; ptr = malloc(23); if (ptr ...
確定! 回上一頁