assert in C
assert is a macro which is useful to check certain conditions at run time(when the program is under execution) and is very useful while debugging a program. To use it you must include the header file "assert.h" in your program.
Declaration: void assert(int expression);
Expression is any valid C language expression, mostly it's a condition. In the example we divide two integers or calculate a/b and you know that b can't be zero so we use