Mega Code Archive

 
Categories / C Tutorial / Statement
 

The for loop with a comma operator

#include <stdio.h> main(){     int i, j;         for (i = 0, j = 10; i < 3 && j > 8; i++, j--){        printf (" the value of i and j %d %d\n",i, j);     } } the value of i and j 0 10 the value of i and j 1 9