www.delorie.com/archives/browse.cgi | search |
Message-ID: | <32F443AF.51CF@dmv.com> |
Date: | Sat, 01 Feb 1997 23:35:11 -0800 |
From: | Pyro Technic <invid AT dmv DOT com> |
Reply-To: | invid AT dmv DOT com |
Organization: | Happy 'N Snappy PC Repair |
MIME-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
Subject: | Theoretical question of loops |
I've got a weird question, wich would be faster and how would I measuree it. Would doing 2 things 3 times be faster or slower than doing 3 things 2 times. // loop set 1 //is this faster for(i=0; i<3; ++i) { for(j=0; j<2; ++j) { //stuff here } } // loop set 2 //or is this for(i=0; i<2; ++i) { for(j=0; j<3; ++j) { //stuff here } } weird stuff. Thanks a lot. Pyro
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |