title: atoi() not working with char array
body: <p>I am learning C and I am trying to find how to much things with a database that I have made with char arrays.</p>
  
  <p>I know atoi works with strings, but I cannot understand the difference between string and char array declaration (i understand strings have also a char with '/0').</p>
  
  <p>It creates a warning when compiling 
  <code>[Warning] initialization makes integer from pointer without a cast</code> at the line <code>int w = LoggersID[j];</code></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  #include &lt;windows.h&gt;
  
  int main()
  {
      // Logger ID Database
      char LoggersID[50][2];
      strcpy(LoggersID[1], "A");
      strcpy(LoggersID[2], "B");
      strcpy(LoggersID[3], "C");
      strcpy(LoggersID[4], "D");
      strcpy(LoggersID[5], "E");
      strcpy(LoggersID[6], "F");
      strcpy(LoggersID[7], "G");
      strcpy(LoggersID[8], "H");
      strcpy(LoggersID[9], "I");
      strcpy(LoggersID[10], "J");
      strcpy(LoggersID[11], "K");
      strcpy(LoggersID[12], "L");
      strcpy(LoggersID[13], "M");
      strcpy(LoggersID[14], "N");
      strcpy(LoggersID[15], "O");
      strcpy(LoggersID[16], "P");
      strcpy(LoggersID[17], "Q");
      strcpy(LoggersID[18], "R");
      strcpy(LoggersID[19], "S");
      strcpy(LoggersID[10], "T");
      strcpy(LoggersID[21], "1");
      strcpy(LoggersID[22], "2");
      strcpy(LoggersID[23], "3");
      strcpy(LoggersID[24], "4");
      strcpy(LoggersID[25], "5");
      strcpy(LoggersID[26], "6");
      strcpy(LoggersID[27], "7");
      strcpy(LoggersID[28], "8");
      strcpy(LoggersID[29], "9");
      strcpy(LoggersID[30], "10");
  
  
      printf("Lets start!\n");
  
  
      for (int i = 65; i &lt; 86; i++)
      {
          for (int j = 1; j &lt; 31; j++)
          {
              int w = atoi(LoggersID[j]);
              if (w == i)
              {
                  printf("\nYou matched %s with %d", LoggersID[j], i);
              }
          }
      }
  
      for (int i = 1; i &lt; 11; i++)
      {
          for (int j = 1; j &lt; 31; j++)
          {
              int w = LoggersID[j];
              if (w == i)
              {
                  printf("\nYou matched %s with %d", LoggersID[j], i);
              }
          }
      }
      printf("\nProgram finished!");
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>When I run it I get </p>
  
  <pre><code>Lets start!
  
  Program finished!
  </code></pre>
  
  <p>instead of matching!</p>