using System; class MainClass { unsafe public static void Main() { string str = "this is a test"; fixed(char* p = str) { for(int i=0; p[i] != 0; i++) Console.Write(p[i]); } Console.WriteLine(); } }
this is a test