Calypsi-tool-chains
Calypsi-tool-chains copied to clipboard
The '%' (mod) operator causes programs to lock up
Have noticed that when I use the '%' operator, that my program crashes. I've reproduced this in a small test:
printf("before trying mod\n");
int a = 10;
printf("after assigning a, before b\n");
int b = a % 9;
// this line never gets printed printf("b is now %d\n", b);