Subj : variable ranges To : comp.programming.threads From : jackowilkinson Date : Sun Mar 13 2005 04:46 pm 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? .