malloc an array of struct pointers vs array of structs. What's the difference between struct mystruct *ptr = (struct test *)malloc(n*sizeof(struct test));.
確定! 回上一頁