Dear all
Can anyone explain to me how a (local) counter can be modified in a loop without being touched in the code? ... and how I am best to debug this?
Thanks
Erich
void test(double *x, int l, int N, int K, double *p, Comp * y)
{
int q, w;
double *buf1 = new double[l];
double *buf2 = new double[l];
int i_out = 0;
for (int n = 0 ; n < l; n=n+N)
{
/* ... main code, does not touch i_out */
i_out = i_out + K;
}
delete[] buf1;
delete[] buf2;
}