title: How can I define argv[2] to be a list as per the following code, and can be called at runtime?
body: <p>argv[2] - It contains a list of items such as 0x1, 0x2, 0x3.</p>
  <p>Suppose we execute our program like this(runtime) - ./program -i all</p>
  <pre><code>int main(int argc, const char* argv[])
  {
      // an array of character arrays.
      argv[2] = { &quot;0x1&quot;, &quot;0x2&quot;, &quot;0x3&quot; }; //How can we define argv[2] by a variable name, like for example : argv[2] is all. So, all = { &quot;0x1&quot;, &quot;0x2&quot;, &quot;0x3&quot; }; 
      return 0;
  }
  </code></pre>
  <p>Note : all is also argv[2].</p>
  <p>Instead of ./program -i 0x1 0x2 0x3, I wish to do like this ./program -i all (where all = { &quot;0x1&quot;, &quot;0x2&quot;, &quot;0x3&quot; }.</p>