Skip to main content

C++ assert.h

 

#include 
#include

int test_assert(int x)
{
assert(x <= 4);
return x;
}

int main()
{
int i;

for (i=0; i<=9; i++)
{
test_assert(i);
printf("i = %d\n", i);
}

return 0;
}

Popular posts from this blog