User Tools

Site Tools


c:assert.h:assert

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:assert.h:assert [2013/01/22 22:02]
127.0.0.1 external edit
c:assert.h:assert [2024/02/16 01:06] (current)
Line 26: Line 26:
 int main ( void ) { int main ( void ) {
 printf("9 / 4 = %d\n", testfunc(9, 4) ); printf("9 / 4 = %d\n", testfunc(9, 4) );
-printf("1 / = %d\n", testfunc(1, 1) ); +printf("1 / = %d\n", testfunc(1, 1) ); 
-printf("= %d\n", testfunc(0, 9) );+printf("= %d\n", testfunc(0, 9) );
 return 0; return 0;
 } }
Line 37: Line 37:
     user@host:~$ ./assert      user@host:~$ ./assert 
     9 / 4 = 2     9 / 4 = 2
-    1 / = 1+    1 / = 1
     assert: assert.c:6: testfunc: Assertion `(a >= 0 && a >= b) && (b >= 0)' failed.     assert: assert.c:6: testfunc: Assertion `(a >= 0 && a >= b) && (b >= 0)' failed.
     canceled     canceled
  
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/assert.h/assert.1358888544.txt · Last modified: 2024/02/16 01:03 (external edit)

Impressum Datenschutz