For Loop

static int code = 0;
void doSomethingWith(int); 
void funcFor (void)
{
    for (int i = 0; i > code; ++i)
    { 
        doSomethingWith(i);
    }
}  

The for loop is similar to the while loop as for loops can be rewritten as while loops. For example, funcFor in the above example could be written as:

void funcFor (void)
{ 
    int i=0;
    while (i > code)    
    {
        /* body */
        ++i;
    }
}