Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

For Statements.........!

10 like 0 dislike
Hi guys,

             Can any one help me,which form I can use for  Simple Statements?Please give your answer as early as possible.............
asked 1 year ago by biswaskeran (70,430 points)

1 Answer

2 like 0 dislike
Hello,
A for statement should have the following form:

    for (initialization; condition; update) {
        statements;
    }

An empty for statement (one in which all the work is done in the initialization, condition, and update clauses) should have the following form:

    for (initialization; condition; update);

When using the comma operator in the initialization or update clause of a for statement, avoid the complexity of using more than three variables. If needed, use separate statements before the for loop (for the initialization clause) or at the end of the loop (for the update clause).
answered 1 year ago by lily (17,510 points)

Related questions

11 like 0 dislike
1 answer
12 like 0 dislike
1 answer
11 like 0 dislike
1 answer
9 like 0 dislike
1 answer
asked 1 year ago by lily (17,510 points)
9 like 0 dislike
2 answers
asked 1 year ago by biswaskeran (70,430 points)