The code p = (int *) malloc(n*sizeof(int)); allocates a contiguous memory area for n locations of type int. It returns the starting address as a void * pointer.
確定! 回上一頁