for

suggest change

Introduces a for loop or, in C++11 and later, a range-based for loop.

// print 10 asterisks
for (int i = 0; i < 10; i++) {
    putchar('*');
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents