if a ")" and if the stack is not empty, then pops the stack into topcharacter; now two "adjacent" parentheses have been removed

else if(rightparen(currentchar))

if(!empty(&s))

{

pop(&s,&topcharacter);