#include <iostream>
using namespace std;
void garis(int panjang) {
int i;
for(i=0;i<=panjang;i++) {
printf("-");
}
}
void judul() {
garis(25);
puts("Contoh Program Pointer");
garis(25);
}
void ttd(){
garis(25);
cout<<"Nama : Ramdika Rovansah"<<endl;
cout<<"Email : ramdika33@gmail.com"<<endl;
}
int main() {
judul();
int nilai1,nilai2;
int *pointerku;
*pointerku = &nilai1;
*pointerku = 10;
cout << "Nilai 1 adalah";<<nilai1<<endl;
*pointerku = &nilai2; *pointerku = 20;
cout << "Nilai 2 adalah";<<nilai2<<endl;
ttd();
return 0;
}