delorie.com/archives/browse.cgi | search |
From: | Damon Hogan <damonh AT pgmincorporated DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Multidimensional arrays in c++ |
Date: | Mon, 27 Dec 1999 17:12:35 -0700 |
Organization: | XMission http://www.xmission.com/ |
Lines: | 35 |
Message-ID: | <38680073.B64FF0E7@pgmincorporated.com> |
References: | <946377604 DOT 363992 AT shelley DOT paradise DOT net DOT nz> |
NNTP-Posting-Host: | mail.pgmincorporated.com |
Mime-Version: | 1.0 |
X-Trace: | news.xmission.com 946339880 25949 166.70.119.101 (28 Dec 1999 00:11:20 GMT) |
X-Complaints-To: | abuse AT xmission DOT com |
NNTP-Posting-Date: | 28 Dec 1999 00:11:20 GMT |
X-Mailer: | Mozilla 4.6 [en] (Win98; I) |
X-Accept-Language: | en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Here is a simple program demonstrating a 2 dimensional array. for more dimensions add more []. #include <stdio.h> #include <stdlib.h> #include <conio.h> int main() { int bob[2][2]; bob[0][0]=1; bob[0][1]=2; printf("%d %d",bob[0][0],bob[0][1]); } Have fun Damon Hogan fouzia zia wrote: > hello folks > > can anyonme tell me bt the multidimensional arrays & their initializations - > thanks > > fouzia
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |