2 Replies Latest reply on Apr 1, 2013 5:30 AM by realhet

    How long it takes to execute this code?

    notooth

      Hi everyone,

       

      Can anyone tell me how long it takes to execute these code?

       

      for (i=0; i>0; i++)

      {

           // Codes take time t to execute

      }

      for (i=0; i<2; i++)

      {

           break;

           // Codes take time t to execute

      }

      for (i=0; i<2; i++)

      {

           // Codes take time t to execute

           break;

      }