Explanation what for(i=0;1;i++) does in C?

Viewed 10764

what for (i=0;1;i++) exactly does? when the for loop will terminate? after reaching value of i=1? When will that happen? (looked for this type of loop in internet and Book C(how to program, Deitel&Deitel), without any result...)

    int i;
    for (i=0;1;i++)
        {
        if (*Something Happens*)
            break;
        }
5 Answers
Related