Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By Denis
- fn main() {
- let i = 10;
- let i_ref = &i;
- let i_ptr = i_ref as *const _;
- let i_ptr_num = i_ptr as usize;
- println!("{:p}, {:x}", i_ref, i_ptr_num);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement