title: Could this alternative way to loop be more effcient?
body: <p>I was bored one rainy afternoon and came up with this:</p>
  
  <pre><code>int ia_array[5][5][5]; //interger array called array
  
  {
          int i = 0, j = 0, k = 0;//counters
          while( i &lt; 5 )//loop conditions
          {
              ia_array[i][j][k] = 0;//do something
              __asm inc k;//++k;
  
              if( k &gt; 4)
              {
                  __asm inc j;  //++j;
                  __asm mov k,0;///k = 0;
              }
              if( j &gt; 4)
              {
                  __asm inc i;  //++i;
                  __asm mov j,0;//j = 0;
              }
          }//end of while
      }//i,j,k fall out of scope
  </code></pre>
  
  <p>its functionally equivalent to three nested for loops. However in a for loop you cannot use __asm statements. Also you have the option to not put the counters in a scope so you can reuse them for other loops. I have looked at the disassembly for both and my alternative has 15 opcodes and the nested for loops have 24. Therefore is it potentially faster? suppose I'm really asking is __asm inc i; faster then ++i;? </p>
  
  <p>note: i don't intent to use this code in any projects, just out of curiosity. thanks for your time.</p>