devxlogo

March 20, 2017

Assertion

The assert macro will terminate the program, often with a message about the assert statement, if its argument are false. #include #include int main(){int x = 10;int y = 2;assert(x==y);}