swap values without temporary variable

Category: C & C++ - Miscellaneous

The XOR swap algorithm is an inefficient method of swapping two variables. Date: 09 February, 2012


Swap Values - Temporary Variable - C Snippets - Swap - Values - Temporary

Homepage: http://snippets.dzone.com

Developer: snippets.dzone.com

License: Freeware

Operating System: Windows, Linux

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Swap Values without using third variable is a simple script for swaping 2 variables without using third variable.

developer Developer: phpbuilder.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Some semi-Posix compliant macros for DOS/Windows/NT.

developer Developer: snippets.org
license License: Freeware
operating systems Operating System: All


Presented with hex such as 0x12345abc perhaps there is a spot in there which represents an ascii char - such as 53 would be 'S'.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Here's a little function to decode part of a query string that has been encoded as per the HTML specification with %xx notation, where xx is the hexidecimal representation of a character.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


A program to test libCoroutine.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


If you want to use multiple blocks of shared memory in a single process you might need to pass a different id to ftok() for each one.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


This code count the chars of a file.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


This code count the chars of a file.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


ASP-JS Alternate Row Colors script allows you to add alterlows you lored rows to your dynamic tables.

developer Developer: dwfaq.com
license License: Freeware
operating systems Operating System: Windows