memswap()

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top