Pointers are variables that store the address of another variable.As language feature they are available in several programming languages like, but not limited to :
To get started with C/C++ pointers , follow these steps
Install compiler like Minimalistic GNU for Windows, http://www.mingw.org/wiki/Getting_Started
Go to the installation folder of g++ binary via commandline for example:
C:\MinGW\bin>
3.Create a text file and write this C++ program
#include <iostream>
int main () {
int pointed=0;
int* ptr = & pointed;
std::cout<<"Address of pointed variable is: "<<ptr<<std::endl;
return 0;
}
g++ -o pointer.exe -c pointer.cpp
Address of pointed variable is: 0x7e892dac0a0c
If you receive the above output, you have written your first pointer program