Here is an example of an ANSI C program that attempts to execute an illegal instruction on platforms where 0xFFFFFFFF is not a valid opcode.
Here is an example of an ANSI C program that attempts to perform an erroneous arithmetic operation, namely integer division by zero, or FPE_INTDIV.
0.005 seconds.