Created
April 18, 2014 15:51
-
-
Save st98/11051022 to your computer and use it in GitHub Desktop.
unsafe を試してみたかったので。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Unsafe | |
{ | |
static unsafe void Main() | |
{ | |
int a = 100; | |
int *p = &a; | |
*p = 200; | |
System.Console.WriteLine("{0}", a); | |
System.Console.ReadKey(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment