delorie.com/archives/browse.cgi | search |
From: | "Martin Ambuhl" <mambuhl AT tiac DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: big matrix/array |
Date: | Sat, 18 Jul 1998 05:00:50 -0400 |
Organization: | Nocturnal Aviation |
Lines: | 24 |
Message-ID: | <6opo4m$8nv@news-central.tiac.net> |
References: | <35D0C6B0BF1 AT cyberlib DOT itb DOT ac DOT id.> <35AAEC96 DOT 2893C89E AT cartsys DOT com> <35b0151a DOT 9633555 AT news DOT rmi DOT net> |
NNTP-Posting-Host: | p20.tc2.newyo.ny.tiac.com |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
John Meyer wrote in message <35b0151a DOT 9633555 AT news DOT rmi DOT net>... |On Mon, 13 Jul 1998 22:28:54 -0700, Nate Eldredge <nate AT cartsys DOT com> |wrote: | |>int a[3000][3000]; | | |Okay, but how do you make an array dynamic? =========== #include <stdlib.h> int main(void) { int *a; if (!(a = malloc(9000000))) exit(EXIT_FAILURE); /* do stuff */ free(a); return 0; } Martin Ambuhl (mambuhl AT tiac DOT net) /* Newsgroup posts also e-mailed */
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |