title: Variable 'A' is uninitialized when used in its own initialization
body: <p>I decided I would take a look at objective C over the summer and so I downloaded Xcode, I'm a complete novice to programming so please sympathise</p>
  
  <p>I figured I would try and create a program that would convert letters to numbers and I'm sure there are better methods to do this but at the moment I have the problem "Variable 'A' is uninitialized when used in its own initialization" </p>
  
  <p>here's my code, friends:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdio.h&gt;
  
  char word[10];
  char numbers[10];
  
  
  
  
  int i = 0;
  void Convert (char input[10]);
  
  int main(int argc, const char * argv[]) {
  
  
  
      NSLog(@"Enter the word");
  
  
      gets(word);
      Convert (word);
      puts(numbers);
  
      return 0;
  }
  
  void Convert (char input[10]) {
      char A = A;
      char B = B;
      char C = C;
      char D = D;
      char E = E;
      char F = F;
      char G = G;
      char H = H;
      char I = I;
      char J = J;
      char K = K;
      char L = L;
      char M = M;
      char N = N;
      char O = O;
      char P = P;
      char Q = Q;
      char R = R;
      char S = S;
      char T = T;
      char U = U;
      char V = V;
      char W = W;
      char X = X;
      char Y = Y;
      char Z = Z;
      for (i=0;word[i] != '\0'; ++i)
  
  
      {
          if (word[i] == A || B || C){
              numbers[i] = 2;
          }
          else if (word[i] == D || E || F){
              numbers[i] = 3;
          }
          else if (word[i] == G || H || I){
              numbers[i] = 4;
          }
          else if (word[i] == J || K || L){
              numbers[i] = 5;
          }
          else if (word[i] == M || N || O){
              numbers[i] = 6;
          }
          else if(word[i] == P || Q || R || S){
              numbers[i] = 7;
          }
          else if(word[i] == T || U || V){
              numbers[i] = 8;
          }
          else if(word[i] == W || X || Y || Z){
              numbers[i] = 9;
          }
          else {
              numbers[i] = 0;
          }
      }
  
  
  }
  </code></pre>
  
  <p>i'm sure this could have been written a lot better so any other criticism or advice is welcome, pointing me in the right direction for a guide to learn c is also welcome!</p>