range_error is which type of exception.
-
logical_error
-
runtime_error
-
domain_error
-
bad_exception
B
Correct answer
Explanation
range_error inherits from runtime_error because it detects problems during execution when values fall outside valid ranges. This is distinct from logical_error, which is for violations detectable before the program runs (like invalid arguments).