Code:typedef struct{ char string[20]; }cell; typedef struct{ cell cell1[20]; int stptr; }stack; push(stack *s_p,char *str){ (s_p->stptr)++; memcpy ((s_p->(cell1[stptr]))->string),str,strlen(str)+1); } pop(stack *s_p,char *str){ strcpy (str,(s_p->(cell1[stptr]))->string)); (s_p->stptr)--; }
the idea was to make a string stack,but this has so many errors,can anyone correct them for me please?