Created
June 10, 2018 13:36
-
-
Save pgpt10/b9534586e30aa4003c1fab2f640b97d2 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
var arr1 = ["Mumbai", "Bangalore"] | |
var arr2 = arr1 | |
print(address(of: arr1)) //0x608000092e50 | |
print(address(of: arr2)) //0x608000092e50 | |
arr2[0] = "Jaipur" | |
print(address(of: arr1)) //0x608000092e50 | |
print(address(of: arr2)) //0x608000092ea0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment