Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.