Hi,

THe printing part of my maze program doesn't work. So i picked out the part that doens't work ( below ). It should print 12 characters per column and per row, however it doesn't. Pls help. THnx in advance!

Code:
/* Prints a maze */

#include <stdio.h>

void printMaze( char maze[][ 12 ] );

int main()
{
   int maze[ 12 ][ 12 ] = { '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1',  /* 0 */
                            '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1',  /* 1 */
                            '0', '0', '1', '0', '1', '0', '1', '1', '1', '1', '0', '1',  /* 2 */
                            '1', '1', '1', '0', '1', '0', '0', '0', '0', '1', '0', '1',  /* 3 */
                            '1', '0', '0', '0', '0', '1', '1', '1', '0', '1', '0', '0',  /* 4 */
                            '1', '1', '1', '1', '0', '1', '0', '1', '0', '1', '0', '1',  /* 5 */
                            '1', '0', '0', '1', '0', '1', '0', '1', '0', '1', '0', '1',  /* 6 */
                            '1', '1', '0', '1', '0', '1', '0', '1', '0', '1', '0', '1',  /* 7 */
                            '1', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '1',  /* 8 */
                            '1', '1', '1', '1', '1', '1', '0', '1', '1', '1', '0', '1',  /* 9 */
                            '1', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '1',  /* 10 */
                            '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1' };/* 11 */

   printMaze( maze );

   getch();
   return 0;
}

void printMaze( char maze[][ 12 ] )
{
   int i, j;

   printf( "\n\n" );

   for ( i = 0; i < 12; i++ )
      for ( j = 0; j < 12; j++ ) {
         if ( j == 11 )
            printf( "\n" );
         printf( "%c", maze[ i ][ j ] );
      }
}