for loop

 #include <stdio.h>

int main()
{
    int i,j,k;
    for(i=0,j=0,k=0;i<10;i++,j++,k++)
    {                                
        printf("%d %d %d\n",i,j,k);  
    }
    return 0;
}
//for loop expressions
//expression1: u can initialize more than one variables
//expression2: u can give more than one condition but the last condition will be taken onto consider
//expression3: u can increment every variable value which u have initialized in for loop

Comments

Popular posts from this blog

Tokens in C

Steps taken by a compiler to execute a C program

Variables and Data Types in C