Address Indirect : Pointer « Data Type « Visual C++ .NET






Address Indirect

 

#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;

Int32 main(void)
{
    Int32 x;   
    Int32 *y;  
    
    y = &x;     
    *y = 50;   
    Console::WriteLine(x);  

    return 0;
}

   
  








Related examples in the same category

1.Int pointer
2.Pointer To String Chars
3.Int Pointer with gcnew
4.Int Pointer Arithematic
5.Using pointer arithmetic on the interior pointer