1

Every time I see people using >= , this question comes to my mind...

Isn't this:

if(x>=15) {}

Slower than this?:

if(x>14) {}

If I were to say(according to my limited knowledge of programming), the former would take 2 CPU cycles in comparison to the latter which would take just 1...

Is it slower, or do compilers optimise these little details? Or perhaps does >= take just 1 CPU cycle?

Sincing
  • 11
  • 3

0 Answers0