Why does -26 % 10
output -6
in C++ ?
How to get the standard modulo, that would output 4
?
Note: this question is probably a duplicate of this one, or many others, but I haven't found one formulated in a short way, understandable in an eye blink. And as I personnaly like finding short questions / short answers (for simple issues), I thought it may interest other people. I'll delete this notice later.