a guest Apr 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var value: Int = 10
- var pointerOfValue = UnsafeMutablePointer(&value)
- print(value) // 10
- print(poinrterOfValue) // 0x00000000118b5c0...
- pointerOfValue.pointee = 20
- print(value) // 20
RAW Paste Data