title: error: called object is not a function or function pointer
body: <p>I try to insert many values into a queue and delete the first value in the queue. 
  However, I have an error when I want to print the queue after deleting values. </p>
  
  <p>There is my code:</p>
  
  <pre><code>char queue[100];
  int i=-1;
  
  int *delete_queue(int value){
  
      int j;
      for(j= 0; j&lt; 10; j++){
      queue[j]= queue[j+1];   
      }
  
      return queue;
  
  }
  
  void insert_queue(int value){
  
      i= i + 1;
      queue[i] = value;
  
  }
  
  void print_queue(int *p){
  
      int v;
      for(v =0; v &lt; 5; v++){
          printf("&gt;&gt; %d \n", *p(v+1) );
      }
  
  }
  
  int main(int argc, char const *argv[])
  {
      //int v ;
      int *new_queue;
      insert_queue(33);
      insert_queue(22);
      insert_queue(11);
  
      new_queue= delete_queue(33);
      print_queue(new_queue);
      // for(v =0; v &lt; 5; v++){
      //  printf("&gt;&gt; %d \n", *new_queue(v+1) );
      // }
  
  return 0;
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>delete_queue_test.c: In function ‘print_queue’:
  delete_queue_test.c:33:23: error: called object ‘p’ is not a function or  
  function pointer
  printf("&gt;&gt; %d \n", *p(v+1) );
                     ^
  </code></pre>
  
  <p>please help me fix it, thank you.</p>