int pointer variable : Unsafe Code : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » Unsafe Code »

 

int pointer variable








    
 

using System;
public class MainClass {
    static void Main(string[] args) {
        unsafe {
            int variable = 10;
            int* pVariable = &variable;
            Console.WriteLine("Value at address is {0}.", *pVariable);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» Unsafe Code