Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

What is the “assert” function?

I've been studying OpenCV tutorials and came across the assert function; what does it do?
by

2 Answers

aashaykumar
assert() function is mainly used in the debugging phase, it is tedious to write if else with a printf statement everytime you want to test a condition which might not even make its way in the final code.
pankajshivnani123
Assert statement is similar to the make sure phrase in English

Login / Signup to Answer the Question.