A B math 5 8 a=5 b=8 5 13 b=b+a 8 13 a=b-a 8 5 b=b-a just a cute C trick, not really fair. I like to spring it on the cocky canidates. (the stack counts as a temp variable) --Angus Anyone else have a good question? ______________________________ Forward Header __________________________________ Subject: Re: Hacker MUDSTEALER ALERT gone off topic Author: INTERNET:CIRCLE@post.queensu.ca at CSERVE Date: 11/3/97 10:26 AM So how do you switch int vars without a temp? I hope you don't say something silly like the stack or pointers... Thanks, >Nathan Davies, > How do you switch the position of 2 int variables without using a temp > variable? > +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST