in reply to Re: Re: non-perl SQL question
in thread non-perl SQL question
I challenged his declaration and provided the following solutionX=5 Y=6 # to swap X and Y, introduce a temporary variable Z Z=X X=Y Y=Z
The lecturer was amazed and gave me an 'A' for the subject. *grin*X=X+Y Y=X-Y X=X-Y # I know this solution is not perfect: # when X and Y are big, there is a danger of overflow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: non-perl SQL question
by rkg (Hermit) on Dec 31, 2003 at 12:18 UTC | |
|
Re: Re: Re: Re: non-perl SQL question
by CountZero (Bishop) on Jan 01, 2004 at 22:48 UTC | |
|
Re^4: non-perl SQL question
by Anonymous Monk on Jul 09, 2004 at 21:56 UTC |