Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# swap variables

//variables to swap
int i = 1;
int k = 2;
//one-liner to swap variables
(i, k) = (k, i);
 
PREVIOUS NEXT
Tagged: #swap #variables
ADD COMMENT
Topic
Name
5+2 =