Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let x = 3;
- let y = &x;
- println!("value of x: {:?}", x);
- println!("value of y: {:p}", y);
- println!("");
- println!("address of x: {:p}", &x);
- println!("address of y: {:p}", &y);
- }
Add Comment
Please, Sign In to add comment