What is the last value displayed when this code is run?
Is it 45, 50, 55, 60, or 80 ?Code:
int *secret;
int j;
secret=new int[10];
secret [0]=[10];
for (j=1;j<10;j++)
{
secret [j]=secret[j-1]+5;
}
for(j=0;j<10;j++)
{
cout<<secret[j]<<" "<<endl;
}