asked 19.0k views
23 votes
The function ____ can check whether an expression meets the required conditions; if the conditions are not met, it terminates the program.

asked
User Cerwin
by
7.5k points

1 Answer

3 votes

Answer:

assert()

Step-by-step explanation:

The assert function takes a boolean as an input, and when true, it just continues the flow, however if false it prints an error and calls exit.

answered
User Lance Cleveland
by
8.1k points

No related questions found