title: how can i get combinations of string Array?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3093622/generating-all-possible-combinations">Generating all Possible Combinations</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to do a little algorithm in C++ or C#</p>
  
  <p>Basically if you have an array:  </p>
  
  <pre><code>{"ab","cd"}
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>ac
  ad
  bc
  bd
  </code></pre>
  
  <p>(I have two nested for loops)</p>
  
  <p>but what if i have an array of 3 elements? or 4 ?</p>
  
  <p>Thank you guys :)</p>