Hi,
can you have a quick look at the two for loops here. I've declared the int 'i' in the first for loop but in the second for loop it doesn't recognise it and i have to declare it again. Why is that?
for(int i=0; i<x; i++)
{
cout << "Enter a number ";
cin >> y;
*(aaa + i)= y;
}
}
cout << "The numbers entered are ";
for(int i=0; i<x; i++)
cout << *(aaa + i) << ", ";