Answers for "c# swap variables"

C#
3

c# swap variables

//variables to swap
int i = 1;
int k = 2;
//one-liner to swap variables
(i, k) = (k, i);
Posted by: Guest on November-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language