C Programming - The Assert Macro

assert () marcro takes a boolean-valued expression evalutes to true, but it prints an informative message and terminates the program if expression eveluates to false. If using C++ you can avoid the deprecated warning message by using instead of

assert ( ptr == NULL );


About this entry