Skip to content

Do something better to return from myStack::pop() if the stack is empty #3

@danpetry

Description

@danpetry

At the moment it's a special character 'k'... what should a pop() return from an empty stack/what are the options? Return a bool to indicate success and pass a pointer? Must check whether the stack is empty first? Etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions