#include <iostream.h>
#include <conio.h>
main() {
int x,*y;
y=&x;
x=5;
*y=10;
cout<<"Nilai x = "<<x;
cout<<"\nAlamat memori yang ditempati x = "<<&x;
cout<<"\n\nNilai y = "<<*y;
cout<<"\nAlamat memori yang ditempati y = "<<y;
getch();
}
#include <conio.h>
main() {
int x,*y;
y=&x;
x=5;
*y=10;
cout<<"Nilai x = "<<x;
cout<<"\nAlamat memori yang ditempati x = "<<&x;
cout<<"\n\nNilai y = "<<*y;
cout<<"\nAlamat memori yang ditempati y = "<<y;
getch();
}