Skip to content

Instantly share code, notes, and snippets.

@pgpt10
Created June 10, 2018 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgpt10/b9534586e30aa4003c1fab2f640b97d2 to your computer and use it in GitHub Desktop.
Save pgpt10/b9534586e30aa4003c1fab2f640b97d2 to your computer and use it in GitHub Desktop.
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