J
Joachim Schmitz
The assert(0) will printa a diagnostic and in debug mode abort the program,Bill said:[snip]
assert(0);
return sqrt(-1.);
}
What's the sqrt function called for ? And the 0 passed to assert?
the sqrt(-1.) will cause a domain error to happen (errno being set to EDOM)
in production mode (i.e. which NDEBUG being #define-ed)
Bye, Jojo