“ptr = malloc(sizeof (int *) * number_of_elements);” The only change is to ... To dynamically allocate memory for pointer to array of struct you have to:.
確定! 回上一頁