Kod:
#include "stdafx.h"
#include <iostream>;
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int sayi,karesi ;
int *pkaresi,*psayi;
pkaresi = &karesi;
psayi=&sayi;
cout<<"her hangi bir sayi giriniz : "<<endl ;
cin>>sayi ;
karesi = sayi * sayi ;
cout<<"sayinin karesi :"<<karesi<<endl;
cout <<"sayinin karesinin adresi :"<<pkaresi<<endl;
cout<<"sayinin adresi :"<<psayi<<endl;
system("pause");
return 0;
}