Monday, 25 March 2013

C++ simple pointer program tell you the address of the pointer


#include<iostream.h>
void main(){
int x,y;
x=245; y=246;
cout<<"value of variable = "<<x<<endl;
cout<<"Value of Address x = "<<&x<<endl;
cout<<"Value of Address y = "<<&y;

}