无法在c中打印数组

Gua*_*ian 1 c

为什么不打印数组我使用c而不是c ++.我究竟做错了什么?我还想知道你可以在char变量中使用哪些字符.

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
   int map[4][4] = {1,1,1,1,1,1,11,1,1,1,1,1,1,1,1}; 
   int x, y;
   for (x = 0; x < 4; x++);
   {  
     for (y = 0; y < 4; y++);
     {    
       printf ("%i ", map[x][y]);
     }
     printf ("\n");
   }   
   return 0;
}
Run Code Online (Sandbox Code Playgroud)

Sal*_*ore 5

摆脱';' 在两个线上:)

#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
 {
 int map[4][4] = {1,1,1,1,1,1,11,1,1,1,1,1,1,1,1}; 
 int x, y;
  for (x = 0; x < 4; x++)
  {  
   for (y = 0; y < 4; y++)
   {    
    printf ("%i ", map[x][y]);
   }
    printf ("\n");
   }   
  system("PAUSE");  
 return 0;
}
Run Code Online (Sandbox Code Playgroud)