Thursday 31 January 2013

pointer in c++ by Zafar Iqbal lavi

#include<iostream.h>
#include<conio.h>
void main()
{

int n;
int*ptr;
cout<<"enter an integer"<<endl;
cin>>n;
ptr=&n;
cout<<" the value is   "<<n<<endl;
cout<<"  the address is n"<<ptr;


getch();
}      

0 comments:

Post a Comment