A
Arthur J. O'Dwyer
^ ^Arthur J. O'Dwyer said:[...]
Probably as a rhetorical device. What *do* you expect the output
of memswap(p,q,10) to be, given
ABCDEFGHIJKLMNOPQRSTUVWXYZ
^ ^
p q
AGHIJKLMNOPQRSTUVWXYZBCDEF
p q
Reasonability dwells with Beauty: in the eye of
the beholder.
Agreed, but I assume you must be joking about the
"reasonableness" of the above answer. How did the
letter 'B' get moved from address (p+0) to address
(p+20), for example?
If you're not joking, you're gonna have to explain
your algorithm.
-Arthur