[Solved] Why is my int a pointer? [closed]


The while condition should probably read as:

while (abs(nextValue - currValue) > 0.00000000001 && iter < 100000)

Note that

  1. There is no semicolon at the end.
  2. The entire condition must be in parentheses.
  3. and is replaced by && – this is not strictly necessary because and is valid in C++ as far as I know, but I have never seen and being used in production code so far.

solved Why is my int a pointer? [closed]