Subj : Re: variable ranges To : comp.programming.threads From : Joe Seigh Date : Sun Mar 13 2005 08:55 pm On 13 Mar 2005 16:46:23 -0800, wrote: > > assuming code: > > > int i=0;//global variable > > > //process 1 //process 2 > int num=0; int num=0; > while(i<5){ while(i<5){ > num=num+1; num=num+1; > i=i+1; i=i+1; > > > > } } > > > what is the range of values for num? > it is supposed to be from 0-15, but i dont know why- any thoughts? > > 1+2+3+4+5 -- Joe Seigh .