A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged


The syntax for both is the same. Note that the "initialization", "condition", "iteration-statement" are all optional. Moreover as already commented, for(; number>0; accumulator *= number--); is a for loop with an empty statement in the "loop body" and without an "initialization" (only semi-colon just means that its an empty statement). for clarification ...

Top 50 recent answers are included