Parse error before ']';parse error before '}'
<p>I tried executing the program below as a simple exercise for command line arguments in cygwin. I ended up getting the following errors      </p>

<p>command.c:10: error: parse error before ']' token
command.c:17: error: parse error before '}' token</p>

<pre><code>   #include&lt;stdio.h&gt;
   void main(int argc,char* argv[])
   {
      int sum=0;
      while(--argc&gt;0)
      {
        sum+=*++argv[];
      }
      printf("%d",&amp;sum);
   }
    }
</code></pre>
