Here is the code,
There is compiler errors. What is wrong with the code? Thanks.Code:namespace ConsoleApplication1 { class Program { static void Main(string[] args) { unsafe { int* p = new int(4); Console.WriteLine(*p); delete p; } } } }
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 2 of 2
Thread: A question regarding unsafe
|
Click Here to Expand Forum to Full Width |