C programming, error: called object is not a function or function pointer

I am trying to write a program which implements the Pop and Push functions. The problem is, I am trying to pass the pointer that points to integer Top to the function, so that this integer keeps changing, but when I try to compile I always get this line:

**error: called object is not a function or function pointer (*t)–

#include<stdio.h>
#include<stdlib.h>

#define MAX 10
int push(int stac[], int *v, int *t)
{
  if((*t) == MAX-1)
  {
      return(0);
  }
  else
  {
      (*t)++;
      stac[*t] = *v;
      return *v;
   }
}

int pop(int stac[], int *t)
{
 int popped;
 if((*t) == -1)
 {
      return(0);
 }
 else
 {
     popped = stac[*t]
     (*t)--;
     return popped;
 } 
}
int main()
{
int stack[MAX];

Leave a Comment

error code: 521