1e8 Subj : Re: which for loop is better? To : comp.programming.threads From : Eric Sosman Date : Thu Mar 24 2005 11:24 am sam wrote: > Hi, > which one of the following codes in C would you prefer to print > those "hello"s and why? > int i,j; > 1) for(i=0;i<=99;i++) > for(j=0;j<=999;j++) > printf("hello"); > > 2) for(i=0;i<=999;i++) > for(j=0;j<=99;j++) > printf("hello"); They both stink. Go away. -- Eric.Sosman@sun.com . 0