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
WebCube Report - Browser-based Multidimensional Data Reporting
Re: Missing constant definition
swapping two integer values without using temporary
Debugging script
What is BEEP (BXXP)?
Meta-Patterns: Design Patterns Explained
XML Helper functions in Visual Basic
nodeset of child templates using document()
Converting INI files to XML
Fullxml 2
Sorting the results and use the Axis
TreeMaker
XMLEditor - WebClipping
WDDX Parser
Templx: x++ IDE Released!
XppEngCOM: COM implementation of x++ interpreter


 
 

<< System.XMLWCF, WS, SOAP >>


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

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 (2 votes, average 5)

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