#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();
}
#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