title: Convert from int array to char array
body: <p>After searching around I couldn't understand how to convert a value obtained from an int array [x] to char array [x]
  Executing this code gives me a null result.</p>
  
  <p>I saw syntax like <code>char x = 98;</code></p>
  
  <p>Its work with single var but doesnt work with array.</p>
  
  <pre><code>#include  &lt;stdio.h&gt;
  
  int main(void)
  {
      int st[6]={99,102,107,111,117,121};
      int cl = 0;
      char pw[7]={'\0'};
  
      for (cl = 0; cl &gt; 7; cl++){
          if (cl == 1){ pw[1] =  st[2];}
          if (cl == 2){ pw[2] =  st[5];}
          if (cl == 3){ pw[3] =  st[1];}
          if (cl == 4){ pw[4] =  st[3];}
          if (cl == 5){ pw[5] =  st[6];}
          if (cl == 6){ pw[6] =  st[4];}
          if (cl == 7){ pw[7] =  st[5];}
      }               
       printf("\n : %c ", pw);                
      return 0;
  }
  </code></pre>
  
  <p>I need the code to encrypt text and then decipher them.
  I'd like to know where I'm wrong.
  PS: If you run the code I don't take responsibility for the result.</p>