#include
#include
#include
main()
{
int i;
int nilai[5];
int *ptrnilai;
ptrnilai=nilai;
for(i=1;i<=5;i++)
{
cout<<"Masukkan nilai "<>nilai[i];
}
cout<
cout<<" pointer";
cout<
{
cout<<"elemen "<cout<<&ptrnilai[i];
cout<
getch();
}
0 komentar