In my code
I keep getting "floating point exception". What's happening exactly?Code:#include <stdio.h>
#include <math.h>
#define MAX 10000000000LL
int main(int argc, char * argv[]) {
int i=0;
long long barcode=0;
int digits[10];
printf("Please enter product code :\n");
scanf("%lld", &barcode);
for (i=10; i>0; i--) {
digits[i] = (barcode/(10^i)) % 10;
printf("digits[%lld] = %d\n", i, digits[i]);
}
return 0;
}