Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Sep 25th, 2018
93
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#![allow(unused)]
fn main() {
let s: &str = "123";
let ptr: *const u8 = s.as_ptr();
unsafe {
println!("{}", *ptr.offset(1) as char);
println!("{}", *ptr.offset(2) as char);
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Online Trainer v21
Ruby | 14 min ago | 6.10 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 14 min ago | 0.39 KB
Meta
GetText | 19 min ago | 0.05 KB
Series (Biram)
Dart | 27 min ago | 1.45 KB
Untitled
C++ | 30 min ago | 0.49 KB
Untitled
Python | 32 min ago | 10.37 KB
Untitled
Python | 33 min ago | 8.08 KB
snowybot.py
JavaScript | 53 min ago | 3.87 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!