3 ms·
So where did C get the idea to `%` for mod?
by Something1234 9y ago
So where did C get the idea to `%` for mod?
- sndean 9y agoIt looks like % has a different use in BCPL, but it's used for mod in B [0], so I'm guessing it's a Thompson/Ritchie invention? (unless it came from some other language that came before B) [0] https://www.bell-labs.com/usr/dmr/www/btut.html https://www.bell-labs.com/usr/dmr/www/btut.html