Search:

Type: Posts; User: laserlight

Search: Search took 0.20 seconds.

  1. Then when that someone uses input designed to...

    Then when that someone uses input designed to cause your function's computations to overflow/underflow, you will have no words left to say but "oops". Really, if you want to note special cases, go...
  2. Interesting, but generally best avoided since the...

    Interesting, but generally best avoided since the intermediate results can be out of the range of int. The XOR swap has a related idea, but likewise is best avoided as it only works on integral types.
  3. Because you use temp, in particular, by...

    Because you use temp, in particular, by dereferencing it.


    Then you have made mistakes a lot of times before (unless you mean that you did not initialise it at the point of declaration, but later...
  4. Because, as the message says, you did not...

    Because, as the message says, you did not initialise temp. Actually temp should not be a pointer.
Results 1 to 4 of 4