Problem Description

Create a function that can return different error types: success=0, null_pointer=-1, out_of_bounds=-2, invalid_input=-3. Use enums for readability.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next