Search:

Type: Posts; User: Cornix

Search: Search took 0.09 seconds.

  1. Re: Is there any significant difference between these segments of code?

    These two statements are equivalent:

    a > size - 1
    a >= size
    They always return the same result.
  2. Re: Is there any significant difference between these segments of code?

    The second implementation looks horrible. I know nobody that would write something like that.
    The first implementation looks fine though. Although I would probably prefer:

    if(indexNumber < 0 ||...
Results 1 to 2 of 2