Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I exchange the values of A and B

0 views
Skip to first unread message

Charlie Kilmer

unread,
Nov 20, 2000, 3:00:00 AM11/20/00
to
How do I exchange the values
int A = x;
int B= y;

here x and y are the values

how do exchange the values so that
int A = y;
int B = x;

--without using a temp to make it happen.

please cc my email at cki...@juniata.dgsys.com

Thanks,

Charles Kilmer
Mclean VA


jdm

unread,
Nov 20, 2000, 9:32:48 PM11/20/00
to
Write a swap() function like QuickBasic had.

John M.


John G Harris

unread,
Nov 21, 2000, 3:00:00 AM11/21/00
to
In article <3A19C802...@juniata.dgsys.com>, Charlie Kilmer
<cki...@juniata.dgsys.com> writes

>How do I exchange the values
>int A = x;
>int B= y;
<snip>

When did "int" appear in javascript?

John
--
John Harris
mailto:jo...@jgharris.demon.co.uk

0 new messages