Question: int i = 3 , j = 4 , k = 8 ; for ( ;;i + + , j + + , k -

int i=3, j=4, k=8;
for (;;i++,j++,k--){
if(j%2) continue;
if(i>k) break;
}
printf ("%d %d %d", i,j,k);
//the output for this one is 784
int i=3, j=4, k=8;
for (i++; j++ ;k--){
if(j%2) continue;
if(i>k) break;
}
printf ("%d %d %d", i,j,k);
//and for this one it is 4103
why? i dont understand the difference */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!