經安全檢測,此網站為安全網站,請放心前往原始網址!

Question 6.16 - comp.lang.c Frequently Asked Questions

A: The traditional solution is to allocate an array [footnote] of pointers to pointers, and then initialize each pointer to a dynamically-allocated ``row.'' Here is a two-dimensional example: #include int **array1 = malloc(nrows * sizeof(int *)); for(i =

c-faq.com

網址安全性掃描由 google 提供