It checks whether expression in the brackets is true or false. If it is false then program terminates running and shows what what the error. If it is true, program continues running.
Example:
...
x = -5
assert(x > 0);
// the program will terminate Best Regards,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.