Question #45861

// TASK C2.1: explain what the expression between the parentheses below does.

return (stack.top == BOTTOMOFSTACK ? true : false);

return (stack.top == BOTTOMOFSTACK ? true : false);

Expert's answer

Dear visitor,

The expression returns true if stack.top equals to BOTTOMOFSTACK value and false otherwise.

The expression returns true if stack.top equals to BOTTOMOFSTACK value and false otherwise.

## Comments

## Leave a comment