$\bmod\!$ operator precedence: does $\,a\bmod b+c\,$ mean $\,(a\bmod b)+c\ $ or $\ a\bmod (b+c)\,$?
My intution is that a mod b + c == (a mod b)+c
, but, in Wolfram Alpha, it seems to prefer a mod b + c == a mod (b+c)
, while in a virtual machine I often work in does a mod b + c == (a mod b)+c
.
What are the conventions for sequence of evaluation in modulo?