BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


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


Uncategorized
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
Table with more than one column
Create an N-Column Table from XML node-set
Fullxml 2
Randomization of node-sets or node-lists
Sorting the results and use the Axis
Finding the Maximum Date
TreeMaker
XMLEditor - WebClipping
RSS / RDF Newsfeed Reader
WDDX Parser


 
 

<< System.XMLWCF, WS, SOAP >>


By Ashish Shukla
First Posted 10/08/2001
Times viewed 113

swapping two integer values without using temporary


the following code uses bitwise operator x-or (^) to swap two integer variables without using any temporary variable and without using any arithmatic operator. I think that using bitwise operator is faster as compared to arithmatic operator.


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