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.

User Cerwin
by
5.2k 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.

User Lance Cleveland
by
5.4k points