I have a small program performing floating-point division by zero, so I expect SIGFPE.
#include #include #include
You only get a signal if you perform an integer division by zero. For floating point numbers division by zero is well defined.
This is actually explained rather well in the Wikipedia article.