title: C programming Char array shuffle and storing values and if =
body: <p>I worked with C about 3 years ago and haven't used it at all since. So it's all a bit fuzzy and I don't remember anything beyond the basics</p>
  
  <p>I'm currently attempting to writing a program in C and am currently trying to find a way to shuffle this array</p>
  
  <pre><code>char Colors[][7] = {"Red", "Purple", "Yellow", "White", "Blue", "Green"};
  </code></pre>
  
  <p>and then pull the colors and store them at</p>
  
  <pre><code>char color1[7];
  char color2[7];
  char color3[7];
  char color4[7];
  char color5[7];
  char color6[7];
  </code></pre>
  
  <p>on a similar note how would I have it check to see</p>
  
  <pre><code>if char color1[7] = Red
  </code></pre>
  
  <p>and if so have it choose between two possible values in this array</p>
  
  <pre><code>char red[][22] = {"first", "second"};
  </code></pre>