title: Is there any way to generate variable names at compile time in C/C++?
body: <p>With reference to the SO thread <a href="https://stackoverflow.com/questions/3633026/c-macro-token-concatenation-involving-a-variable-is-it-possible"><strong>C Macro Token Concatenation involving a variable - is it possible?</strong></a>,</p>
  
  <p><strong>Is it at all possible to generate variable names at compile-time in C and C++?</strong></p>
  
  <p>something like</p>
  
  <pre><code>int count = 8;
  for(i=0; i&lt;count; i++) {
      int var_%i% = i*i;   // &lt;--- magic here
  }
  </code></pre>
  
  <p><sub><em>I know I can use arrays for this case, but this is just an example just to explain what I mean.</em></sub></p>