Sind während Schleifen effizienter als bei Schleifen [Duplikat]C++

Programme in C++. Entwicklerforum
Anonymous
 Sind während Schleifen effizienter als bei Schleifen [Duplikat]

Post by Anonymous »

wurde mir gesagt, dass eine Weile effizienter als eine für Schleife ist. (C /C ++)
Dies schien vernünftig, aber ich wollte einen Weg finden, ihn zu beweisen oder zu widerlegen. Each containing Nothing but a for or while loop with the same output:
  • Compile time - roughly the same
  • Run time - Same
  • Compiled to intel assembly code and compared - Same number of lines and virtually the same code
Should Ich habe noch etwas ausprobiert oder kann jemand auf die eine oder andere Weise bestätigen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post