SHARE
TWEET

Untitled

a guest Apr 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var value: Int = 10
  2. var pointerOfValue = UnsafeMutablePointer(&value)
  3.  
  4. print(value) // 10
  5. print(poinrterOfValue) // 0x00000000118b5c0...
  6.  
  7. pointerOfValue.pointee = 20
  8. print(value) // 20
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top