1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-17 13:38:38 +01:00

Declare variable before empty for loop.

This commit is contained in:
Levi Bostian 2013-09-20 22:33:19 -05:00
parent 868be425a6
commit 67cd987efa

View File

@ -264,6 +264,7 @@ int main() {
// *****NOTES*****:
// Loops MUST always have a body. If no body is needed, do:
int i;
for (i = 0; i <= 5; i++) {
; // use semicolon to act as the body (null statement)
}