Menu
Home
Create new Paste
Log in
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
import std.stdio; void main(string[] args) { immutable int x = 10; int *y = cast(int*) &x; *y += 10; writeln(x); writeln(*y); writeln(&x); writeln(y); }
Result:
Success
/
Return code: 0
/
Compilation time:
0.379
seconds
/
Run time:
0
seconds
Disassembly
Application output:
10
20
7FFF125E04F8
7FFF125E04F8
Username
Message
Add comment
Paste info
Author:
Guest
Views:
212
Private:
no
Expires:
Never
Uploaded:
06.08.12 13:53
Parent:
#85eefcc4
Votes
:
0
Tweet
Compilation
Compiler:
DMD 2.062
Pointer size:
m64
Actions
Download
Fork
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason