Pointer of a pointer : Pointer : Unsafe C# Examples


C# Examples » Unsafe » Pointer »

 

Pointer of a pointer









    
using  System;  
  
class  MainClass  {  
    unsafe  public  static  void  Main()  {  
        int  x;        //  an  int  value    
        int*  p;      //  an  int  pointer  
        int**  q;    //  an  pointer  to  an  int  pointer  
  
        x  =  10;  
        p  =  &x;  
        q  =  &p;  
  
        Console.WriteLine(**q);  
    }  
}
    
   
  
   



Output

10


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Unsafe
» Pointer