#include <iostream>
#include <conio.h>
using namespace std;
void baris()
{
cout<<endl;
}
void nama()
{
char *nama;
nama="Muhamad HusniRamadhan";
cout<<"Nama : "<<nama;
baris ();
cout<<"Nama di alamat : "<<&nama;
}
void nim()
{
int nim = 19101140011;
int *ptr;
ptr=&nim;
cout<<"NIM : "<<nim;baris();
cout<<"NIM di alamat : "<<&nim;baris();
cout<<"Ptr di alamat : "<<&ptr;
}
main()
{
nama();
baris();baris();
nim();
getch();
}
Tidak ada komentar:
Posting Komentar