Created
November 14, 2019 18:18
-
-
Save kadiralev1/248f98e08521a83b00d5ae4e1a39ec87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func doubleInPlace(number: inout Int) { | |
number *= 2 | |
} | |
var myNumber = 10 | |
doubleInPlace(number: &myNumber) | |
print(myNumber) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment