Anonymous user
Create a two-dimensional array at runtime: Difference between revisions
Create a two-dimensional array at runtime (view source)
Revision as of 16:17, 12 December 2009
, 14 years ago→Traditional Style
(→Traditional Style: expand) |
|||
Line 102:
This style also supports more efficient memory utilization if you're only using a portion of the
array. If you only need the upper right half of a square array, you can do something like the following.
<lang c>#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
|