core dump....

This is a discussion on core dump.... within the C Programming forums, part of the General Programming Boards category; I get core dump when I run this code : Code: for(i=0;i<3;i++) { for(j=0;j<3;j++ { for (k=0;k<5;k++) { for(l=0;l<20;l++) { ...

  1. #1
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259

    core dump....

    I get core dump when I run this code :


    Code:
    for(i=0;i<3;i++)
    	{
    	for(j=0;j<3;j++
    		{
    		for (k=0;k<5;k++)
    			{
    			for(l=0;l<20;l++)
    				{
    				fprintf(stdout,"%s", inv [i] [j] [k] [l]);
    				}
    			} 
    		}
    	}
    it also gives me this warning while compiling
    (for the fprintf line):
    warning: format argument is not a pointer (arg 3)
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  2. #2
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259
    never mind I fixed the code by writing taking away the last loop.
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. having a core dump
    By justins in forum C Programming
    Replies: 6
    Last Post: 05-21-2008, 01:00 PM
  2. STL vector core dump
    By creativeinspira in forum C++ Programming
    Replies: 9
    Last Post: 07-22-2007, 05:49 PM
  3. Core Dump in While()
    By KrepNatas in forum C Programming
    Replies: 5
    Last Post: 05-17-2005, 12:15 PM
  4. core dump
    By kermit in forum Linux Programming
    Replies: 0
    Last Post: 08-03-2004, 07:25 PM
  5. core dump
    By lonbgeach in forum C Programming
    Replies: 1
    Last Post: 04-07-2003, 04:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21