1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

error message

Discussion in 'C' started by panayiotispatra, Nov 11, 2007.

  1. panayiotispatra

    panayiotispatra New Member

    I take the following message of error. How I can correct him?

    error: `array' undeclared (first use in this function)
    error: (Each undeclared identifier is reported only once
    error: for each function it appears in.)

    void display(int b[9][9])
    	        int i,j;
                for(i = 0; i <9; i++)
    				for(j = 0; j <9; j++)
    		             printf("| ");
    					printf("%d ", array[i][j]);
    				if(i%3==0) printf("+---------+---------+---------+\n");
    Last edited by a moderator: Nov 12, 2007
  2. shabbir

    shabbir Administrator Staff Member

    You have not declared the variable array which you have used in printf("%d ", array[j]);

Share This Page