for(i = 0; i < ARRAY_SIZE; i++)
{
*(array + i)++;
if ( *(array + i) >= 10)
{
*(array + i) = 0;
}
}
line is bold is the error line.It alows me below to using *(array...) just not where i increment it.Any ideas??Btw in the program im not allowed use subscripts i.e [] thats why im using + i.
Thanks
{
*(array + i)++;
if ( *(array + i) >= 10)
{
*(array + i) = 0;
}
}
line is bold is the error line.It alows me below to using *(array...) just not where i increment it.Any ideas??Btw in the program im not allowed use subscripts i.e [] thats why im using + i.
Thanks