#include <iostream>
using namespace std;
int main()
{
int age;
for (int i=0;i<5;i++)
{
cout << "Enter :";
cin >> age;
}
int *sum=&age;
for ( i=0;i<5;i++)
{
cout <<*(sum+i) << endl;
}
return 0;
}
here is one of my program that i wrote.
i do not know whats the problem with it.
it seems can't display back the values that i've entered in.
can sir/miss help me to correct my mistake(s).
Thank you!