title: I am assigning three variables at a same time but code is throwing me an error
body: <p>my code is:</p>
  <pre><code>#include&lt;iostream&gt;
  using  namespace std;
  
  int main()
  {
      int arr[5] = {6,7,3,61,9};
      int *p = arr;
      int a,b,c = *p, *(p+1), *(p+2);
      // int a,b,c ;
      // a = *p;
      // b = *(p+1);
      // c = *(p+2);
      return 0;
  }
  </code></pre>
  <hr />
  <p>this is throwing me an error: &quot;error: expected ')' before '+' token&quot;.
  When I tried to run the commented code then there was no error.
  Can anyone please explain why there is an error.</p>