#include <iostream>
using namespace std;
int main()
{
int value=8,*ptr;
ptr=&value;
cout<<"\n The address of value : "<<ptr;
cout<<"\n The value is : "<<value;
*ptr=(*ptr)/2;
cout<<"\n The value is (after deviding 2) : "<<*ptr;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: