FOR LOOP STATEMENT :

 #include<conio.h>

#include<stdio.h>


int main(){

    

    int i=1; int j=1; 

    

    for(--i&&j++; i<10; i+=3){

        printf(" loop = %d\t",i);

    }

}




ans :  loop = 0 loop = 3 loop = 6 loop = 9

Comments

Popular posts from this blog

250+ C Programs for Practice

FUNCTION OVERRIDING IN CPP