title: program(array to struct)warning: assignment makes integer from pointer without a cast
body: <p>I am to use a program wherein a data from <code>array</code> would be passed to the <code>struct</code>. But I always get a warning: assignment makes integer from pointer without a cast. How do I fix it?</p>
  
  <p>Code:</p>
  
  <pre><code>struct player_t = 
        {
         char player_name;
         char player_number;
        };
  
  char name[], number[];
        (some code to take the input)
  
  int x=0;
  
  struct player_t info[] = 
      {
          info[x].player_name = name
              info[x].player_number = number
      };
  
  
      printf("%s\n%s", info[x].player_name, info[x].player_number);
  </code></pre>