Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
swap using xor
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int first, second; first = 100; second = 200; //swap numbers using XOR first = second^first; second = second^first; first = first^second; Console.WriteLine("first = " + first); Console.WriteLine("second = " + second); } } }
run
|
edit
|
history
|
help
1
decimal to binary
Informashin prsonely
Date Conversion
Wait
octalofint
Random Integers
Numerical string to fancy graphical output
Contravariance
Unexpected result of virtual method
BCD16BitTest