0

c -> % operator

I just wrote a binary convertor but I find a problem. Why 1%10=1?

21st Dec 2018, 10:25 AM
Lighton
Lighton - avatar
2 Réponses
+ 6
You can divide 1/10 zero times, and the remainder will be 1.
21st Dec 2018, 11:06 AM
HonFu
HonFu - avatar
0
Why 1%10=1?
21st Dec 2018, 10:58 AM
Lighton
Lighton - avatar