- Asserts are useful for catching programming logical errors during development
- Asserts are not for handling exceptions, nor expected errors, no matter how rare they are
- Asserts are used to catch errors that should never ever happen
- in C, include , and use the assert() macro as follows
- assert( x == 10 );
- define NDEBUG to exclude the assertion code from the compiled program