Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

# swap variables

# swap variables
x = 5
y = 10
x, y = y, x

# In other languages you need a temp variable.
# temp = a;
# a = b;
# b = temp; 
Source by learning.oreilly.com #
 
PREVIOUS NEXT
Tagged: #swap #variables
ADD COMMENT
Topic
Name
8+6 =