int c = someIntegerValue;
// Some code...
int i;
for ( i = 0; i < 5, i < c; i++ ) {
...
}
My compiler says error: expression has no effect
, which sounds about right. So, which of those 2 comparisons will be used here? My guess is the i < c
is ignored, but I wanted some confirmation from others as I am not in a position to run this code yet...