Calypsi-tool-chains icon indicating copy to clipboard operation
Calypsi-tool-chains copied to clipboard

The '%' (mod) operator causes programs to lock up

Open rebeccabuckingham opened this issue 1 year ago • 1 comments

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);

rebeccabuckingham avatar May 04 '23 02:05 rebeccabuckingham