Answers for "pointer in c#"

C#
0

pointer in c#

static unsafe void Main(string[] args) {
   int val = 50;
   int* x = &val;

   Console.WriteLine("Data: {0} ", val);
   Console.WriteLine("Address: {0}", (int)x);
   Console.ReadKey();
}
Posted by: Guest on August-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language