[ create a new paste ] login | about

Link: http://codepad.org/NQfsRoR5    [ raw code | output | fork ]

D, pasted on Feb 21:
1
2
3
4
5
6
7
import std.stdio;

void main() {
  char[] s= "immutable literal?";
  s[$-1] = '!';
  writefln(s);
} 


Output:
1
Segmentation fault


Create a new paste based on this one


Comments: