title: Increment Char Array Pointer
body: <p>Is it possible to increment/advance a char array like I can a char pointer?</p>
  
  <p>For example I can do this for a char pointer:</p>
  
  <pre><code>while (*cPtr) 
     printf("c=%c\n", *(cPtr++));
  </code></pre>
  
  <p>But I am not able to do this:</p>
  
  <pre><code>// char cArray[] = "abcde";
  while (*cArray)
     printf("c=%c\n", *(cArray++));  // Compile error: 19 26  [Error] lvalue required as increment operand
  </code></pre>
  
  <p>The purpose is to be able to iterate over a char array when I dont know the length of the array. My thinking is that I just want to advance till I find a null character I guess unless theres an easier way?</p>
  
  <pre><code>char a[] = "abcde";
  int index = -1;
  
  while (a[++index]) 
     printf("c=%c\n", a[index]);
  </code></pre>