Very straight forward. The code below is from one of my functions:
int i, j;
for (i = 0; i < m; i++) {
for (j = 0; j < numberOfVariables; j++) {
if ((j % i) == 0 && i != 0) {
table[i][j] = 1;
}
}
}
When I call it, I get a floating point exception. Except that I am working with no floating points. So what's happening exactly?