From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: Incomprehensible messages when attempting to run program Date: Sat, 03 Oct 1998 03:42:44 -0400 Organization: Nocturnal Aviation Lines: 22 Message-ID: <3615D574.58293FC1@earthlink.net> References: NNTP-Posting-Host: 1cust231.tnt12.nyc3.da.uu.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Posted-Path-Was: not-for-mail X-ELN-Date: Sat Oct 3 00:40:43 1998 X-Mailer: Mozilla 4.06 [en] (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Graham Watkins wrote: > > Can anybody out there explain this? > > I am currently attempting to learn C using the djgpp compiler. When > attempting to run the program below which has compiled without errors, > all I get is the following message: Actually, you should have gotten diagnostics. If not, you are not using a sufficiently high level of warning messages. However, your immediate problem is in the > for (c = 0; b < 10; c++) If you look at it, I'm sure you will see the problem. Also, try #including , and fixing > printf("\%d", random_array[a][b][c]); It would be a good idea to make the return type of main explicit (it's int) and explicitly return a value. -- Martin Ambuhl (mambuhl AT earthlink DOT net) Note: mambuhl AT tiac DOT net will soon be inactive