title: Using pointers to iterate through argv[]
body: <p>I want to use the following code, but without indexing the array with"[][]" and substitute it with pointers</p>
  
  <pre><code>for (int i = 0; i &lt; argc; i++) {
      for (int j = 0; argv[i][j] != '\0'; j++) {
          //code
      }
  }
  </code></pre>
  
  <p>I know that you can use pointers to traverse an array, but I'm unsure how to do that with an undefined length in the second array, in this case the string from input. Since each element of argv[] can have a different length, I want to make sure that I can properly read the characters and know when each element of argv[] ends, and the next begins.</p>
  
  <p>I expect it to be something like: (If the following header to main is wrong, please tell me.)</p>
  
  <pre><code>int main(int argc, char **argv) {
      for (int i = 0; i &lt; argc; i++) {
          while(argv != '\0') {
              //code
              *argv+1;
          }
          //to skip null character
          argv+1;
      }
  }
  </code></pre>