BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


Uncategorized
Comparing Multiple fields from the subquery
Re: Filtering unique values
Re: Grouping with totals/subtotals -- nested Muenchian method
Grouping with totals/subtotals -- nested Muenchian method
Generic JScript Function To Load XML Data
WebCube Report - Browser-based Multidimensional Data Reporting
The pow(a, b) function
Re: Missing constant definition
A simple template to display singular and plural counts
swapping two integer values without using temporary
Debugging script
Combinations of k out of n numbers
Permutations of the values of N nodes
What is BEEP (BXXP)?
Family Tree maker
Alternative Ordering - ""Women and Children to the lifeboats first""
Meta-Patterns: Design Patterns Explained
XML Helper functions in Visual Basic
nodeset of child templates using document()
Converting INI files to XML


 
 

<< System.XMLWCF, WS, SOAP >>


By Daraesh Mistry
First Posted 03/27/2001
Times viewed 231

Swapping values in two integer variables without using a temporary variable


Summary Alternate method - Swapping values in two integer variables without using a temporary variable

Alternate method - Swapping values in two integer variables without using a temporary variable. If variable 'x' contains a value=5. Variable 'y' contains a value=6 To swap the values in both these variables so that 'x' contains the value contained by 'y' i.e.,6 and 'y' contains the value contained by 'x' i.e., 5 we need a temporary variable. My snipped would do the swapping without a temporary variable.

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< System.XMLWCF, WS, SOAP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML