3 ms·
Probably in order to be consistent with assignment.
by Sharlin 16y ago
Probably in order to be consistent with assignment.
- aliguori 16y agoWhich is really the odd ball. In a left-to-right language, it's sort of bizarre that we don't write `4 = x' since the rvalue tends to be the more complicated part of the expression. The curious bit is, AT&T assembly syntax does follow this convention so you'll see something like `mov $5, ax'.
- rlpb 16y agoI think it's more to do with the requirement that mandatory arguments have to go before optional ones (it wouldn't work the other way round).
- Sharlin 16y agoIn strcpy, memcpy and partners, both arguments are (rather obviously) mandatory...